Bodyless loop (was: Comparing strings...)
Dave Gillespie
daveg at near.cs.caltech.edu
Mon Oct 22 19:35:32 AEST 1990
>>>>> On 19 Oct 90 15:50:17 GMT, henry at zoo.toronto.edu (Henry Spencer) said:
> In article <18573 at haddock.ima.isc.com> karl at 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 at csvax.cs.caltech.edu, ...!cit-vax!daveg
More information about the Comp.lang.c
mailing list