Path: utzoo!mnetor!uunet!yale!bunker!garys From: garys@bunker.UUCP (Gary M. Samuelson) Newsgroups: comp.lang.c Subject: Re: gotos Message-ID: <3470@bunker.UUCP> Date: 15 Apr 88 22:42:50 GMT References: <1988Apr8.183815.3187@utzoo.uucp> <449@goofy.megatest.UUCP> <1988Apr11.201934.20594@utzoo.uucp> <748@l.cc.purdue.edu> Reply-To: garys@bunker.UUCP (Gary M. Samuelson) Organization: Bunker Ramo, an Olivetti Company, Shelton, Ct Lines: 32 In article <748@l.cc.purdue.edu> cik@l.cc.purdue.edu (Herman Rubin) writes: > >Here is a challenge to the denigrators of goto. I am not sure I qualify, absolutely, but how about: Case 5: b >>= g16; m |= b; x = *(--geom); if (TEST) { if(ODD(x)) Case2(); else Case1(); } else { g4 = (x+1)/2; if(ODD(x)) Case3(); else Case4(); } Readability improved through indentation at no extra charge. Extraneous semi-colons tossed also. And, yes, I normally do such things when I have to deal with ugly code. Now give me something hard. Gary Samuelson