From: mlh at idt.ntnu.no (Magnus L. Hetland)
Date: 19 May 1999 13:50:51 +0200
Subject: Concrete Proposal: while ... and while ...
References: <7hsv80$g9j$1@news.tamu.edu>
Message-ID: <y0j675pmg6c.fsf@vier.idi.ntnu.no>
X-UID: 1727                                                

cwebster at math.tamu.edu (Corran Webster) writes:

> Last night, after reading the latest assignment in expressions thread, I
> went and hacked together a patch which implements the proposed
> 
> while:
>   ...
> and while test:
>   ...

I thought the Guido-approved version had a condition on the first as
well (i.e. an expansion of the standard while loop)?

Thus:

while 1:
  ...
and while something:
  ...

Of course, that doesn't remove the ugliness of the "while 1" but it
does alleviate the use of "break". I guess your suggestion actually
adds the syntax of "while:" for "while 1:" as well -- or is it only in
the use with "and while" that it is permitted?
--

  Magnus
  Lie
  Hetland        http://arcadia.laiv.org <arcadia at laiv.org>




