Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2(pesnta.1.2) 9/5/84; site scc.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!pesnta!scc!steiny From: steiny@scc.UUCP (Don Steiny) Newsgroups: net.lang.c Subject: Re: goto's in 'C' Message-ID: <330@scc.UUCP> Date: Tue, 22-Jan-85 14:45:52 EST Article-I.D.: scc.330 Posted: Tue Jan 22 14:45:52 1985 Date-Received: Wed, 23-Jan-85 19:13:20 EST References: <308@harvard.ARPA> Distribution: net Organization: Personetics, Inc. - Santa Cruz, Calif. Lines: 22 > > >The incidence of the "goto" in C code is so rare anyway, I dare say > >we could abolish it altogether (replacing it with BLISS's "leave") > >and not miss the loss. (I certainly never missed it in BLISS.) > > It is extremely useful, though, > for 'hardcoding' finite state machines. Boy ain't that the truth. I assign the task of rewriting lex and yacc so that their output does not contain goto's to the person who suggested they be abolished. A typical yacc output has hundreds of goto's. It is not a bad thing when is is done automatically. -- scc!steiny Don Steiny - Personetics @ (408) 425-0382 109 Torrey Pine Terr. Santa Cruz, Calif. 95060 ihnp4!pesnta -\ fortune!idsvax -> scc!steiny ucbvax!twg -/