why no "do : until"?

Steven D. Majewski sdm7g at virginia.edu
Wed Jan 10 11:31:46 EST 2001


On Wed, 10 Jan 2001 gregory_wilson at my-deja.com wrote:
> 
> A proposal I floated a year ago, based on feedback from students in
> the Python course I teach, was:
> 
>     do:
>       first-half
>     while cond:
>       second half
> 
> which would allow the following degenerate forms:
> 
>     do:
>       body
>     while cond
> 
> and
> 
>     while cond:
>       body
> 

How do you distinguish between a single loop:

do:
  stuff
while cond:
  more_stuff

and two separate degenerate loops:

do:
  stuff

# done stuff

while cond:
  other_stuff


?

---|  Steven D. Majewski   (804-982-0831)  <sdm7g at Virginia.EDU>  |---
---|  Department of Molecular Physiology and Biological Physics  |---
---|  University of Virginia             Health Sciences Center  |---
---|  P.O. Box 10011            Charlottesville, VA  22906-0011  |---
		"All operating systems want to be unix, 
		 All programming languages want to be lisp." 





More information about the Python-list mailing list