From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ncis.llnl.gov!helios.ee.lbl.gov!nosc!ucsd!ucbvax!software.ORG!blakemor From: blakemor@software.ORG (Alex Blakemore) Newsgroups: comp.lang.ada Subject: more goto Message-ID: <8901210017.AA09291@venera.isi.edu> Date: 20 Jan 89 15:55:30 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet List-Id: Re: the goto question The most convincing argument I have heard in support of the goto is that it could come in useful for tools that generate source code, (e.g parser generators and a few others). Since the emitted code is not generally intended to be maintained by humans, who cares if it contains gotos ? Especially if it makes such tools easier to construct. The important thing is that the source the programmer works with have a logical structure (the .y file in yacc's case). This sounded plausible, since I had seen several gotos in source created by yacc. I looked a little closer and found nine gotos which were all copied exactly from the standard skeleton parser driver, yaccpar. The emitted code itself contains no gotos. So maybe the above argument doesn't really hold. Who believes we're still arguing over this in 1989 ? Alex Blakemore Software Productivity Consortium