Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: Bodyless loop (was: Comparing strings...)
Message-ID: <1990Oct19.155017.23963@zoo.toronto.edu>
Organization: U of Toronto Zoology
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>
Date: Fri, 19 Oct 90 15:50:17 GMT

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...
>
>This is a valid concern.  On the other hand, there are those of us who gag at
>the sight of a naked semicolon on a line by itself, which is what I guess
>Henry to be suggesting as an alternative.

Actually, no, my preferred alternative is

	while (...)
		continue;

although I can live with minor variants like using {} instead of continue.
(This is, incidentally, just about the only use of continue that I'm happy
with!)
-- 
The type syntax for C is essentially   | Henry Spencer at U of Toronto Zoology
unparsable.             --Rob Pike     |  henry@zoo.toronto.edu   utzoo!henry
