Xref: utzoo comp.lang.c:27823 comp.std.c:2777 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!mailrus!ncar!unmvax!bbx!bbxsda!scott From: scott@bbxsda.UUCP (Scott Amspoker) Newsgroups: comp.lang.c,comp.std.c Subject: Re: loops in general Keywords: loops Message-ID: <682@bbxsda.UUCP> Date: 12 Apr 90 20:25:23 GMT References: <1565@amethyst.math.arizona.edu> Reply-To: scott@bbxsda.UUCP (Scott Amspoker) Organization: Basis International, Albuquerque, NM Lines: 21 In article <1565@amethyst.math.arizona.edu> raw@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