Path: csiph.com!usenet.pasdenom.info!news.franciliens.net!fdn.fr!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'amounts': 0.07; 'nasty': 0.07; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'a()': 0.16; 'fond': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'parentheses': 0.16; 'sat,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'looks': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'gets': 0.27; 'header:In-Reply- To:1': 0.27; 'function': 0.29; 'statement': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'subject:skip:i 10': 0.31; 'quite': 0.32; 'not.': 0.33; 'sense': 0.34; 'received:google.com': 0.35; 'pm,': 0.38; 'such': 0.63; 'here': 0.66; 'surprise': 0.74; '2015': 0.84; 'analyzed': 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=2WXv5B0yO794IgqDICuym9zLxwLbCVzy7+khDXTNpeE=; b=QmV/vCaQUh/QY7PTY50ddYrm6tYU+cWrLrdk5GSwpnFFyyLyIohv35ga08Yy3X+fk9 dPYnH6K+Rl9VhvAJ4Go7/X2CJgpdWuubMrW2MWr+cMIUoxhG5DRmsASjAEGYon1sZLNo BwnqMlm7hLJU8pGolNL4t7kjdH445uQ5PXXkC8UskOP8btMnt9PX6iwKcGnsqCB5oNwB dEhojGirHPb+G0NK88+q233CsR2BS3fwkUJAn3tsP4jQ/Kb2U5Uc77BiQX59pYyjiGb1 2MDR3Wzv502zYlc2572Sr8TgCMcHGE8aaaKmVWbNGmUvxPPlYQjq72S/8BdfnLbDLddt OEog== MIME-Version: 1.0 X-Received: by 10.42.52.200 with SMTP id k8mr11771132icg.26.1421501632255; Sat, 17 Jan 2015 05:33:52 -0800 (PST) In-Reply-To: References: <3d8068b3-7b63-43c0-bbf2-6111b2c73aa4@googlegroups.com> <87zj9kb2j0.fsf@elektro.pacujo.net> <54B86CF8.7040602@gmail.com> <54ba39e0$0$13008$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 18 Jan 2015 00:33:52 +1100 Subject: Re: lambdak: multi-line lambda implementation in native Python 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421501640 news.xs4all.nl 2833 [2001:888:2000:d::a6]:41409 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:83922 On Sat, Jan 17, 2015 at 9:49 PM, Jussi Piitulainen wrote: > I've only seen small amounts of Ruby code on the net. The only way I > can make some sense of that is if it gets analyzed as follows, using > parentheses for calls: > > a + b => 7 # a() + b => a(4) + b => 4 + 2 + 1 > a+b => 7 # a() + b > a+ b => 7 # a() + b > a +b => 3 # a(+b) => a(b) => a(1) = 1 + 2 > > I'm not quite fond of such surprise in programming language syntax. Every once in a while, someone looks at Py2's print statement and Py3's print function and says, "why not allow function calls without parentheses". This right here is why not. Wow. That is one nasty surprise. ChrisA