Hi,
Just an opinion, but many uses of the while true loop
are instances of a do loop. I appreciate the language layout
question, so Ill give you an alternative:
do:
body
setup
code
while
condition
Cheers,
Hans Polak.
This message contains information that may
while cond
Cheers thanks for your reply,
Hans Polak.
-Original Message-
From: Nick Coghlan [mailto:[EMAIL PROTECTED]
Sent: domingo, 01 de octubre de 2006 6:18
To: Hans Polak
Cc: python-dev@python.org
Subject: Re: [Python-Dev] PEP 351 - do while
Hans Polak wrote:
Hi,
Just
code
Cheers,
Hans.
-Original Message-
From: Nick Coghlan [mailto:[EMAIL PROTECTED]
Sent: lunes, 02 de octubre de 2006 12:48
To: Hans Polak
Cc: python-dev@python.org
Subject: Re: [Python-Dev] PEP 315 - do while
Hans Polak wrote:
Hi Nick,
Yep, PEP 315. Sorry about that.
Now
Thanks for your reply Nick, and your support Michael. I'll leave the PEP
talk to you guys :)
Cheers,
Hans
-Original Message-
From: Michael Foord [mailto:[EMAIL PROTECTED] On Behalf Of Fuzzyman
Sent: martes, 03 de octubre de 2006 12:00
To: Nick Coghlan
Cc: Hans Polak; python-dev
Coghlan [mailto:[EMAIL PROTECTED]
Sent: martes, 03 de octubre de 2006 15:51
To: Fuzzyman
Cc: Hans Polak; python-dev@python.org
Subject: Re: [Python-Dev] PEP 315 - do while
Fuzzyman wrote:
Nick Coghlan wrote:
In my example, the 3 sections (setup code, loop body and loop
completion
code are all
: Hans Polak; python-dev@python.org
Subject: Re: [Python-Dev] PEP 315 - do while
Nick Coghlan wrote:
[snip..]
The current idiom works fine, but looks unnatural :
while True:
if condition:
break
There's the rationale for the PEP in a whole 5 lines counting
whitespace