Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'compact': 0.09; 'means,': 0.09; 'second.': 0.09; 'subject:language': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '"lambda"': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'higher-level': 0.16; 'lambda': 0.16; 'notation,': 0.16; "others'": 0.16; 'rarely': 0.16; 'readability': 0.16; 'subject: \n ': 0.16; 'subject:?)': 0.16; 'subject:unicode': 0.16; 'third,': 0.16; 'token,': 0.16; 'unlikely': 0.16; 'wrote:': 0.18; '(not': 0.18; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'space.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'that.': 0.31; 'usually': 0.31; '(maybe': 0.31; '25,': 0.31; 'programmers': 0.33; 'actual': 0.34; 'maybe': 0.34; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'really': 0.36; 'largely': 0.36; 'words,': 0.36; 'being': 0.38; 'pm,': 0.38; 'rather': 0.38; 'extremely': 0.39; 'itself': 0.39; 'space': 0.40; 'how': 0.40; 'read': 0.60; 'is.': 0.60; "you're": 0.61; 'first': 0.61; 'more': 0.64; 'different': 0.65; 'between': 0.67; 'mar': 0.68; 'anything.': 0.68; 'brain': 0.68; 'equals': 0.68; 'saving': 0.69; '10%': 0.74; 'gain': 0.79; 'subject:this': 0.83; 'compare:': 0.84; 'here)': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=G//N/I27CFrkbWP5xzSil5OmtQe9ZYcC0u+xDGHXuqU=; b=cCVL8xOjD9m7NAkOieu+wNc9P36YQ0E6jngnYuMu2YaUcGvicGhIFvCoOVHc2HPXXm p7YfP0oHyhRui8D0d1Tt8HiAxTOUxMDs7xSWostbgVGEALs7eLBoY5GsBUriXZ1l1lQc w2q9y1mT1k9OHv8mbJurbj4CBDImgaoc7dgJOg9yy1ziyqSf9ai7RE76+TT2RB2S/dDj eLkt0PrJuaLTMhfnqP7i90hlF83I+PzOwiMie6k7057PAIf5Bh7ik6eRoUa5I3A8hIDX vYf3AlUcwYkylF9jcl5BK1TiC81WkCcXDm7Oywrx9vnhf8BPxz7nNIrkslzNBnO8m5jP YLXQ== MIME-Version: 1.0 X-Received: by 10.66.181.70 with SMTP id du6mr75263933pac.23.1395719822244; Mon, 24 Mar 2014 20:57:02 -0700 (PDT) In-Reply-To: References: <9daf0806-02de-4447-964c-c8f8953c23e5@googlegroups.com> <10101874-2995-4acd-9851-989603f052e3@googlegroups.com> <532d5bd9$0$29994$c3e8da3$5496439d@news.astraweb.com> <0b78649a-16b3-4410-8258-e859578d62be@googlegroups.com> Date: Tue, 25 Mar 2014 14:57:02 +1100 Subject: Re: Time we switched to unicode? (was Explanation of this Python language feature?) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395719831 news.xs4all.nl 2832 [2001:888:2000:d::a6]:55395 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68947 On Tue, Mar 25, 2014 at 2:43 PM, Rustom Mody wrote: > What you are missing is that programmers spend > 90% of their time reading code > 10% writing code > > You may well be in the super-whiz category (not being sarcastic here) > All that will change is upto 70-30. (ecause you rarely make a mistake) > You still have to read oodles of others' code No, I'm not missing that. But the human brain is a tokenizer, just as Python is. Once you know what a token means, you comprehend it as that token, and it takes up space in your mind as a single unit. There's not a lot of readability difference between a one-symbol token and a one-word token. Also, since the human brain works largely with words, you're usually going to grok things based on how you would read them aloud: x = y + 1 eggs equals why plus one They take up roughly the same amount of storage space. One of them, being a more compact notation, lends itself well to a superstructure of notation; compare: x += 1 eggs plus-equals one inc eggs You can eyeball the first version and read it as the third, which is a space saving in your brain. But it's not fundamentally different from the second. So the saving from using a one-letter symbol that's read "lambda" rather than the actual word "lambda" is extremely minimal. Unless you can use it in a higher-level construct, which seems unlikely in Python (maybe it's different in Haskell? Maybe you use lambda more and actually do have those supernotations?), you won't really gain anything. ChrisA