Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site whuxl.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!mike From: mike@whuxl.UUCP (BALDWIN) Newsgroups: net.lang.c Subject: Re: break, continue, return, goto (net.religion.c) Message-ID: <802@whuxl.UUCP> Date: Tue, 12-Nov-85 01:16:32 EST Article-I.D.: whuxl.802 Posted: Tue Nov 12 01:16:32 1985 Date-Received: Thu, 14-Nov-85 07:42:06 EST References: <771@whuxl.UUCP> <516@busch.UUCP> <779@whuxl.UUCP> <521@busch.UUCP> Distribution: net Organization: AT&T Bell Laboratories, Whippany Lines: 30 Abuses like in your example are precisely why break/return(s) have a bad name to some people, I believe. The crux of the matter seems to be the size of the function/loop. If it is small, a simple test is better. If it is really big, splitting it into functions is better. It's that in-between state where breaks get their say. And, like everyone has their own curly style [WHAT! Not K&R! EAT RAW NOODLES AND SPINACH! oh sorry, this isn't net.religion.c :-)], everyone has their own idea about the critical mass of program text (sometimes "code" is exactly the right word!!) before it should be split up. > Something in this flavor (this may be taking it a bit too far, > but I like to push the real work down as far as possible...) This is fun to do. One of my programs goes so many layers deep that by the time you get to the actual i/o, you've lost track of what you were doing! (It implements a layered network protocol, so please, no flames. They shall be dutifully rot13'd and chanted backwards.) That EMT Trap story was great! Talk about startling! > Oh well, enough religion. That's what the C bible is for, right? :-) Of course! Since net.religion.christian posters sometimes include quotes from a Bible, it seems only appropriate to sign off with one here. Are *you* a "floating type" yet? Yayeh! "Conversions of integral values to Michael Baldwin floating type are well behaved." {at&t}!whuxl!mike -- C Bible, Book 6, Chap 3, Verse 3