loops in general
Scott Amspoker
scott at bbxsda.UUCP
Fri Apr 13 06:25:23 AEST 1990
In article <1565 at amethyst.math.arizona.edu> raw at math.arizona.edu () writes:
>>
>>#define forever for(;;)
>
>personally, I prefer
>
>#define forever while(1)
I've always wondered why some people use 'while(1)' as an unconditional
loop instead of 'for(;;)'. A 'while' loop, by definition, has a condition
(granted, the condition is always true). A 'for' loop has an optional
condition and therefore, may be truly "unconditional".
Oh well, just $.02 from an anal retentive programmer :-)
--
Scott Amspoker
Basis International, Albuquerque, NM
(505) 345-5232
unmvax.cs.unm.edu!bbx!bbxsda!scott
More information about the Comp.lang.c
mailing list