On 28/06/2014 09:04, Thomas Allen wrote:
Rust language defines a special way to make an infinite loop (http://doc.rust-lang.org/tutorial.html#loops).
I propose adding the same keyword to Python. It will be very useful for WSGI servers and will suit as a more convenient replacement for recursion (hence Python doesn't do TRE). I personally find it much prettier than /while True/ or /while 1/. It won't cause any problems with existing programs, because /loop/ is very rarely used as a variable name.
For instance
while True: do_something() do_something_else()
would turn to
loop: do_something() do_something_else()
No thank you, my standard answer applies. I prefer Python in a Nutshell to fit in my pocket, not the back of a 40 ton articulated lorry. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com