[Python-ideas] Updating PEP 315: do-while loops
bruce at leapyear.org
Mon Apr 27 06:52:30 CEST 2009
I think a legitimate issue here is that break and continue can be hard to
see sometimes when they're nested several layers deep. That makes while
True: ... if x: break less clear than it could be. So let me throw out two
(1) Allow break and continue to be spelled BREAK and CONTINUE which makes
them stand out a bit more.
(2) Allow a line containing break or continue to start with a -> token
outside the normal indentation.
I don't expect either of these proposals to attract support. I present them
to put a small focus on the issue of making break/continue more visible.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas