Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76834
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <drsalists@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'syntax': 0.04; 'pop': 0.05; '21,': 0.07; 'expressions': 0.07; '"("': 0.09; 'counting': 0.09; 'cc:addr:python-list': 0.11; 'suggest': 0.14; '":"': 0.16; 'cc:name:python list': 0.16; 'indent': 0.16; 'pythonic': 0.16; 'sentences.': 0.16; 'subject:?)': 0.16; 'top:': 0.16; 'language': 0.16; 'wrote:': 0.18; 'stack': 0.19; 'thu,': 0.19; '(in': 0.22; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'skip:" 20': 0.27; 'gets': 0.27; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:wiki': 0.31; 'multiline': 0.31; 'url:wikipedia': 0.31; 'entirely': 0.33; 'maybe': 0.34; "i'd": 0.34; 'could': 0.34; 'subject: (': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'next': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'too': 0.37; 'list': 0.37; 'removing': 0.60; 'truly': 0.60; 'to:addr:gmail.com': 0.65; 'way)': 0.84; 'yours': 0.88; 'wanting': 0.93 |
| 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:to :cc:content-type:content-transfer-encoding; bh=lcUjDieYeX1VOqZd3kNvZwFnVZ3iNGcniyUr1SXzTqw=; b=ZWsFq31FoHX8OUmxTewFbDECCJt7Dz0zHFcf/2DKlaZQphIC1hwMtd7S9ZUzSMXhtg HK4skSlUTWhvh9cq8Yol3R2HBPVVGBYtTPIFQ7SEX6fRMp52tvaEQYbtVudIb5X+zW2R lyREYsqH8mu5l4QXBEyTuwSyZ8gWB+gNk2igEGiLo+WeaOMlHDeCs8/r7gYl9vLT4rZD 4Ljb6E4xZjk3Gbp4tfWLuj6irr/bRzJ4DTdXBVRSQUFdd6mWYjh7balMkB/wuqwept5e SWHaUcWsc2lVXQexRQ90zMHJ1fwNO406GfMpyF0oNU46j2Qnr+V3tIc7mT3yR953w7du wxyQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.152.9.100 with SMTP id y4mr7505583laa.26.1408751892836; Fri, 22 Aug 2014 16:58:12 -0700 (PDT) |
| In-Reply-To | <1bd05b41-ad00-4ce8-8678-de51205ebc3b@googlegroups.com> |
| References | <1bd05b41-ad00-4ce8-8678-de51205ebc3b@googlegroups.com> |
| Date | Fri, 22 Aug 2014 16:58:12 -0700 |
| Subject | Re: proposed syntax for multiline anony-functions (hopefully?) |
| From | Dan Stromberg <drsalists@gmail.com> |
| To | icefapper@gmail.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | Python List <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13320.1408751900.18130.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1408751900 news.xs4all.nl 2914 [2001:888:2000:d::a6]:33057 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:76834 |
Show key headers only | View raw
On Thu, Aug 21, 2014 at 12:55 AM, <icefapper@gmail.com> wrote:
> Hi, just wanting to do a shot in the dark,but maybe this syntax is Pythonic (in a "we-are-all-grown-ups" fashion, ahem)enough to get its way into the language
> this is what yours truly thinks: don't we all know that ":" means the next token must be an indent (mostly)? and doesn't the "(" and its alikes, [ and } begin an space-insensitive lexing context? so all we need is having an "space-sensitivity-stack" and the corresponding "(" counting stack and this way we could match opening and closing "()" and pop the space-sensitivity-stack whenever the "(" counting stack gets a 0 at the top:
Please don't add multiline lambdas to Python.
Multiline lambdas give rise (in a big way) to the
computer-language-equivalent of run-on sentences.
If anything, I'd suggest removing single-line lambdas. List
comprehensions and generator expressions render single-line lambdas
almost entirely redundant; they're too TMTOWTDI.
http://en.wikipedia.org/wiki/Run-on_sentence
http://en.wikipedia.org/wiki/There's_more_than_one_way_to_do_it
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 00:55 -0700
Re: proposed syntax for multiline anony-functions (hopefully?) Chris Angelico <rosuav@gmail.com> - 2014-08-21 18:18 +1000
Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 01:59 -0700
Re: proposed syntax for multiline anony-functions (hopefully?) Chris Angelico <rosuav@gmail.com> - 2014-08-21 19:05 +1000
Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 02:06 -0700
Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 02:27 -0700
Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 02:14 -0700
Re: proposed syntax for multiline anony-functions (hopefully?) Marko Rauhamaa <marko@pacujo.net> - 2014-08-21 12:27 +0300
Re: proposed syntax for multiline anony-functions (hopefully?) icefapper@gmail.com - 2014-08-21 02:30 -0700
Re: proposed syntax for multiline anony-functions (hopefully?) alex23 <wuwei23@gmail.com> - 2014-08-22 15:15 +1000
Re: proposed syntax for multiline anony-functions (hopefully?) Terry Reedy <tjreedy@udel.edu> - 2014-08-21 06:07 -0400
Re: proposed syntax for multiline anony-functions (hopefully?) Travis Griggs <travisgriggs@gmail.com> - 2014-08-22 13:05 -0700
Re: proposed syntax for multiline anony-functions (hopefully?) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 19:20 +1000
Re: proposed syntax for multiline anony-functions (hopefully?) Dan Stromberg <drsalists@gmail.com> - 2014-08-22 16:48 -0700
Re: proposed syntax for multiline anony-functions (hopefully?) Dan Stromberg <drsalists@gmail.com> - 2014-08-22 16:58 -0700
Re: proposed syntax for multiline anony-functions (hopefully?) Marko Rauhamaa <marko@pacujo.net> - 2014-08-23 10:37 +0300
csiph-web