Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32089

Re: while expression feature proposal

From Terry Reedy <tjreedy@udel.edu>
Subject Re: while expression feature proposal
Date 2012-10-25 00:50 -0400
References <50886398.5050301@tim.thechases.com> <20121024222656.GA32708@cskk.homeip.net> <5088779A.3000202@cs.wisc.edu>
Newsgroups comp.lang.python
Message-ID <mailman.2811.1351140683.27098.python-list@python.org> (permalink)

Show all headers | View raw


On 10/24/2012 7:19 PM, Evan Driscoll wrote:
> On 10/24/2012 05:26 PM, Cameron Simpson wrote:
>> But I'm still -0 on it, because it supplants the glaringly obvious:
>>
>>    m = ...
>>
>> assignment with the far less in your face:
>>
>>    possibly-long-expr as m
>>
>> and I think it would get quite heavily used, to the detriment of
>> assignment readability in general. At present the nature of most effects
>> is at the left. An assignment is obvious on the left, an if/with/while/etc
>> is visible at the left.
>
> In the interest of brainstorming, what about
>
>     while VAR from EXPR:
>
> or something like that? I don't think I like 'from' on a couple counts,
> but there's probably some word that fits.

The op wondered if these proposals have been made before. They have 
been, and have been rejected. Some of the discussion has been on 
python-ideas list. But go ahead and brainstorm and discuss.

Keep in mind that any new syntax has to be a substantial improvement in 
some sense or make something new possible. There was no new syntax in 
3.2 and very little in 3.3.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: while expression feature proposal Terry Reedy <tjreedy@udel.edu> - 2012-10-25 00:50 -0400
  Re: while expression feature proposal Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-10-25 11:52 +0200
    Re: while expression feature proposal Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-25 10:50 +0000
      Re: while expression feature proposal Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-10-25 13:20 +0200
      Re: while expression feature proposal Terry Reedy <tjreedy@udel.edu> - 2012-10-25 16:09 -0400
    Re: while expression feature proposal Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-25 10:44 -0600
  Re: while expression feature proposal Grant Edwards <invalid@invalid.invalid> - 2012-10-25 14:17 +0000

csiph-web