Nick Coghlan wrote:
Hans Polak wrote:
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 I’ll give you
an alternative:
do:
body
setup code
while
On 10/1/06, Ron Adam [EMAIL PROTECTED] wrote:
(I don't think this has been suggested yet.)
while enter_condition, exit_condition:
body
[snip]
Putting both the entry and exit conditions at the top is easier to read.
I agree in principle, but I thought the proposed syntax
(I don't think this has been suggested yet.)
while enter_condition, exit_condition:
body
This usage makes me uneasy, not the least because I don't understand why the
comma isn't creating a tuple. That is, why whould
while x, y:
body
be any different
At 12:58 PM 10/1/2006 -0400, Andrew Koenig wrote:
(I don't think this has been suggested yet.)
while enter_condition, exit_condition:
body
This usage makes me uneasy, not the least because I don't understand why the
comma isn't creating a tuple. That is, why whould
This pattern:
while entry_cond:
...
and while not exit_cond:
...
has been suggested before, and I believe that at least one of the times it
was suggested, it had some support from Guido. Essentially, the and
while not exit is equivalent to an if exit:
Michael Urman wrote:
On 10/1/06, Ron Adam [EMAIL PROTECTED] wrote:
(I don't think this has been suggested yet.)
while enter_condition, exit_condition:
body
[snip]
Putting both the entry and exit conditions at the top is easier to read.
I agree in principle, but I thought
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 be
Hans Polak wrote:
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 I’ll give you
an alternative:
do:
body
setup code
while condition
I believe