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: comp.lang.c
Subject: Re: goto's in C: an opinion...
Message-ID: <8321@utzoo.UUCP>
Date: Sat, 18-Jul-87 21:24:06 EDT
Article-I.D.: utzoo.8321
Posted: Sat Jul 18 21:24:06 1987
Date-Received: Sat, 18-Jul-87 21:24:06 EDT
References: <3289@bigburd.PRC.Unisys.COM> <7571@beta.UUCP>, <3435@oberon.USC.EDU>
Organization: U of Toronto Zoology
Lines: 15
Keywords: C, goto, style

> There is a nice class of decision trees which can NEVER be implemented smaller
> in a structure and and appear MESSIER when in a structure (to me anyway)
> versus just a couple labels and GOTOs to "help the structure out"...

Try putting it in a table-driven form before you reject goto-less solutions.
Usually still more readable, seldom significantly slower if done carefully.

Incidentally, I support a ten-year ban on use of the word "structured" to
mean anything other than "organized" (which is, remember, its original
meaning).  If you mentally make this substitution, it sheds a whole new
light on people who insist that "we can't use structured programming because
it's too inefficient/clumsy/hard/whatever".
-- 
Support sustained spaceflight: fight |  Henry Spencer @ U of Toronto Zoology
the soi-disant "Planetary Society"!  | {allegra,ihnp4,decvax,utai}!utzoo!henry