self-contained loop style

arnold arnold
Sat Oct 23 18:04:36 AEST 1982


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



More information about the Comp.lang.c mailing list