_continue_ as NOP
Doug Gwyn
gwyn at smoke.brl.mil
Thu Feb 28 07:35:12 AEST 1991
In article <1991Feb22.181921.21478 at inferno.peri.com> shane at inferno.peri.com (Shane Bouslough) writes:
>Consider the following single statement while loop:
> while ( actual work happens in here )
> ;
>I have seen _continue_ used to make the NOP semi-colon a
>little less invisible:
> while ( actual work happens in here )
> continue;
This is merely a matter of style, so I hope it doesn't generate lots
of argument. Every competent C programmer should be expected to be
able to deal with either form when encountered. I personally use the
former method, which strikes me as sufficiently visible and clear.
I do NOT like usage such as
while (condition);
where the controlled statement is practically obscured by the format.
More information about the Comp.lang.c
mailing list