The rap against "while True:" loops
python at mrabarnett.plus.com
Wed Oct 14 18:54:40 CEST 2009
Dennis Lee Bieber wrote:
> On Tue, 13 Oct 2009 15:02:09 -0700 (PDT), Mensanator
> <mensanator at aol.com> declaimed the following in
>> You're not getting away that easy.
>> What's YOUR opinion of "whilr True"?
> Uhm... that it isn't valid in any language having English influence
> upon it's keywords...
> If anything -- I'd suggest a proposal to add a plain loop as a
> keyword in Python, whose effect is equivalent to a "while True", but a
> break must be used to exit said loop (well, we'll ignore raising an
> exception <G>)
<bikeshedding>I'd prefer it to be called "repeat".</bikeshedding>
More information about the Python-list