break <label> != goto <label>

Henry Spencer henry at utzoo.UUCP
Sun Jan 13 10:56:29 AEST 1985


Putting the label at the beginning of the loop, when the "break <label>"
transfers to the end of the loop, strikes me as poor design.  One can
argue that the label ought to appear in both places to make the bracketing
clear, but now we're back to a situation where goto can solve the problem
just about as well.

Personally, my favorite loop-exit construct is "return".
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.lang.c mailing list