Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!cs.utexas.edu!uwm.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!unmvax!pprg.unm.edu!topgun!mustang!nntp-server.caltech.edu!nntp-server.caltech.edu!daveg From: daveg@near.cs.caltech.edu (Dave Gillespie) Newsgroups: comp.lang.c Subject: Re: Bodyless loop (was: Comparing strings...) Message-ID: Date: 22 Oct 90 09:35:32 GMT References: <1990Oct13.190106.15615@ux1.cso.uiuc.edu> <3330@idunno.Princeton.EDU> <11486@alice.att.com> <3343@idunno.Princeton.EDU> <1990Oct15.042851.18595@zoo.toronto.edu> <18573@haddock.ima.isc.com> <1990Oct19.155017.23963@zoo.toronto.edu> Sender: news@nntp-server.caltech.edu Organization: California Institute of Technology Lines: 25 In-Reply-To: henry@zoo.toronto.edu's message of 19 Oct 90 15:50:17 GMT Nntp-Posting-Host: near.cs.caltech.edu >>>>> On 19 Oct 90 15:50:17 GMT, henry@zoo.toronto.edu (Henry Spencer) said: > In article <18573@haddock.ima.isc.com> karl@ima.isc.com (Karl Heuer) writes: >>By the way, tacking the ";" on the end of the while is a great way to >>trip up your readers... > > Actually, no, my preferred alternative is > while (...) > continue; My favorite way is to write while (...) ; wish a space before the trailing semicolon. It's concise, and unambigious (to me at least) because I never put a space before the semicolon for any other reason. (Nor do most C programmers I've seen.) -- Dave -- Dave Gillespie 256-80 Caltech Pasadena CA USA 91125 daveg@csvax.cs.caltech.edu, ...!cit-vax!daveg