Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32117 > unrolled thread
| Started by | Antoon Pardon <antoon.pardon@rece.vub.ac.be> |
|---|---|
| First post | 2012-10-25 13:22 +0200 |
| Last post | 2012-10-25 13:22 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: while expression feature proposal Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2012-10-25 13:22 +0200
| From | Antoon Pardon <antoon.pardon@rece.vub.ac.be> |
|---|---|
| Date | 2012-10-25 13:22 +0200 |
| Subject | Re: while expression feature proposal |
| Message-ID | <mailman.2837.1351164207.27098.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web