Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32117
| Date | 2012-10-25 13:22 +0200 |
|---|---|
| From | Antoon Pardon <antoon.pardon@rece.vub.ac.be> |
| Subject | Re: while expression feature proposal |
| References | <50886398.5050301@tim.thechases.com> <20121024222656.GA32708@cskk.homeip.net> <5088779A.3000202@cs.wisc.edu> <k6agfp$3o0$1@ger.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2837.1351164207.27098.python-list@python.org> (permalink) |
On 25-10-12 06:50, Terry Reedy wrote:
> 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.
If I recal correctly at one point the following was accepted:
do:
suite
while expr:
suite
But it was later discarded because of lack of a champion or something
like that.
--
Antoon Pardon
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: while expression feature proposal Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2012-10-25 13:22 +0200
csiph-web