[net.lang.c] self-contained loop style

ARPAVAX:arnold (10/24/82)

I, for one, much prefer using a "continue" statement for self-contained
for/while loops.  For example

	while (isspace(*++sp))
		continue;

seems a lot clearer than

	while (isspace(*++sp))
		;

and quite a bit clearer than

	while (isspace(*++sp));

This is a much more explicit and obvious way to express this concept.

		Ken

bj (10/25/82)

Whenever I see a "continue", I expect it to be a jump from the middle of
a loop with statements following it.  If I saw

	while (isspace(*++sp))
		continue;

it would not be what I expected and would make the program harder to
comprehend, not clearer.

					B.J.
					decvax!yale-comix!herbison-bj
					Herbison-BJ@Yale