Thoughts on PEP315

Bernhard Herzog bh at intevation.de
Wed Sep 24 06:14:48 EDT 2003


Stephen Horne <$$$$$$$$$$$$$$$$$@$$$$$$$$$$$$$$$$$$$$.co.uk> writes:
> The PEP315 system of...
>
>   do:
>     ...
>   while condition :
>     ...
>
> is IMO broken simply because there is no lexical indicator in that
> 'while' line that it is a continuation rather than a new structure. It
> isn't a distinctive keyword because 'while' can obviously be the start
> of a loop.

I think someone once suggested "and while" instead of a plain while:

do:
   ...
and while condition:
   ...

This reads quite nicely IMO.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
Thuban                                  http://thuban.intevation.org/




More information about the Python-list mailing list