Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'assignment': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; 'missed': 0.12; 'a()': 0.16; 'fond': 0.16; 'message- id:@4ax.com': 0.16; 'range,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'syntactic': 0.16; 'sat,': 0.16; 'language': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'example': 0.22; 'programming': 0.22; 'rules': 0.22; 'integer': 0.24; 'url:home': 0.24; 'second': 0.26; 'header:X-Complaints-To:1': 0.27; 'idea': 0.28; 'instruction': 0.29; "i'm": 0.30; "d'aprano": 0.31; 'steven': 0.31; 'subject:skip:i 10': 0.31; 'quite': 0.32; 'plain': 0.33; 'point.': 0.35; 'skip:> 10': 0.36; 'charset:us-ascii': 0.36; 'should': 0.36; 'two': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'first': 0.61; 'back': 0.62; 'such': 0.63; 'where:': 0.68; 'surprise': 0.74; '100': 0.79; '2015': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: lambdak: multi-line lambda implementation in native Python Date: Sat, 17 Jan 2015 17:21:50 -0500 Organization: IISS Elusive Unicorn References: <87zj9kb2j0.fsf@elektro.pacujo.net> <54B86CF8.7040602@gmail.com> <54ba39e0$0$13008$c3e8da3$5496439d@news.astraweb.com> <87a91hoebi.fsf@elektro.pacujo.net> <54ba5a25$0$12991$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-217-84.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 1421533313 news.xs4all.nl 2849 [2001:888:2000:d::a6]:54115 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:83955 On Sat, 17 Jan 2015 23:48:35 +1100, Steven D'Aprano declaimed the following: >Marko Rauhamaa wrote: > >> Jussi Piitulainen : >> >>> 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. >> >> Yes, whoever came up with the idea of whitespace having syntactic >> significance! > >Yes, we should go back to the rules of ancient FORTRAN, where: > >DO100X=1.10,2 > >and > >DO 100 X = 1. 10, 2 > >mean exactly the same thing. > >Not. > You missed the better example DO10I=1,10 vs DO 10 I = 1 . 10 The two do NOT mean the same thing -- the first being a loop instruction over an integer range, and the second is a plain assignment of a floating point. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/