[Python-Dev] Wishlist: dowhile
Nick Coghlan
ncoghlan at gmail.com
Wed Jun 15 12:57:57 CEST 2005
Guido van Rossum wrote:
> Why are you so excited about having until indented? You didn't give
> any examples with multiple occurrences. A single occurrence works just
> fine unindented, as PEP 315 has already shown.
I hadn't actually thought about the temptation to try and have
multiple 'until' statements inside the suite. Having two suites of the
statement included in the loop, while the third is excluded, feels
slightly odd, but other than that PEP 315 is fine by me.
The fact that PEP 315 only needs a single new keyword is a good thing,
as is the fact that it means the 'else' clause still reads correctly.
As you said earlier: "It is Pythonically minimal and the motivation
rings true"
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.blogspot.com
More information about the Python-Dev
mailing list