while true: !!!

Erik Max Francis max at alcyone.com
Tue Dec 12 12:04:41 EST 2000


Greg Jorgensen wrote:

> The C/C++ loop idioms are:
> 
>   for (; ;) { ... }
> 
> and less common:
> 
>   while (1) { ... }

Not to start another pointless argument, I've seen while (1) [or while
(true) in C++] to be a much more common construct than for (;;).  Both
work perfectly well, of course.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ An undevout astronomer is mad.
\__/ Edward Young
    Alcyone Systems / http://www.alcyone.com/
 Alcyone Systems, San Jose, California.



More information about the Python-list mailing list