Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site 3comvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!oliveb!3comvax!mikes From: mikes@3comvax.UUCP (Mike Shannon) Newsgroups: net.lang.c Subject: Re: break, et cetera [long, but you can stop early] Message-ID: <285@3comvax.UUCP> Date: Wed, 20-Nov-85 15:00:16 EST Article-I.D.: 3comvax.285 Posted: Wed Nov 20 15:00:16 1985 Date-Received: Sat, 23-Nov-85 00:29:59 EST References: <771@whuxl.UUCP> <9500030@iuvax.UUCP> <2246@umcp-cs.UUCP> Organization: 3Com Corp; Mountain View, CA Lines: 20 Chris Torek in the cited article: > I personally might even use a `Knuth-style goto', depending on > the situation: > > for (i = 0; i < HIGH; i++) > if (array[i] == X) > goto found; > /* code to deal with `not found' */ > return; > found: > /* code to deal with `found' */ > return; --- How about some background on 'Knuth-stype goto's? I've run across this style before, where there is some sort of descriptive label every 5 or 6 lines. And lots of goto's. Does Knuth like these? Do you like these? What could recommend this style to anyone? I can't say I like it very much. -- Michael Shannon {ihnp4,hplabs}!oliveb!3comvax!mikes