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: <8362@utzoo.UUCP> Date: Sun, 2-Aug-87 20:33:46 EDT Article-I.D.: utzoo.8362 Posted: Sun Aug 2 20:33:46 1987 Date-Received: Sun, 2-Aug-87 20:33:46 EDT References: <3289@bigburd.PRC.Unisys.COM> <7571@beta.UUCP> Organization: U of Toronto Zoology Lines: 11 > Also, the transitional tables have one very good advance over this approach > which is, it requires the programmer to enumerate all posible actions > associated with every state-input pair... I'd like to second this comment; I had a recent experience with such a situation. That code would *never* have been right if I hadn't converted it to a table-driven approach, which forced an organized, careful analysis of each and every case rather than "add code until it seems to work". -- Support sustained spaceflight: fight | Henry Spencer @ U of Toronto Zoology the soi-disant "Planetary Society"! | {allegra,ihnp4,decvax,utai}!utzoo!henry