Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!henry
From: henry@utzoo.UUCP (Henry Spencer)
Newsgroups: net.lang.c
Subject: Re: break != goto
Message-ID: <4910@utzoo.UUCP>
Date: Sat, 12-Jan-85 19:56:29 EST
Article-I.D.: utzoo.4910
Posted: Sat Jan 12 19:56:29 1985
Date-Received: Sat, 12-Jan-85 19:56:29 EST
References: <1143@ihuxi.UUCP>
Organization: U of Toronto Zoology
Lines: 10
Putting the label at the beginning of the loop, when the "break "
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