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=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,14f7200925acb579 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: No Go To's Forever! Date: 2000/03/23 Message-ID: <8bbt45$b51$1@nnrp1.deja.com>#1/1 X-Deja-AN: 601106743 References: <38D7B41D.B3494C6A@lmco.com> <38D8E9DE.14E93706@quadruscorp.com> <8barht$4u6$1@nnrp1.deja.com> <38D947B9.6C50@synquiry.com> X-Http-Proxy: 1.0 x25.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Mar 23 01:47:53 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-03-23T00:00:00+00:00 List-Id: In article <38D947B9.6C50@synquiry.com>, Jon S Anthony wrote: > I seem to recall that (at least in the "early days") the designers > put the goto statement in Ada due to a belief that there would be > a significant amount of machine generated Ada (presumably from > much higher level problem descriptions). Anyone with a clue knows > that in this case goto is mighty handy. That's certainly a consideration, but if you recall that this was the *only* reason then you recall wrong :-) Jean Ichbiah is not goto-allergic, and agrees that there are some legitimate uses. Once he was looking at some of my code and asked what the gotos were there for. I said the magic words "finite state machine", and he immediately agreed the usage was not just acceptable but desirable. Encoding the state into the PC is an efficient and easy to read and follow representation of FSM's. Actually relatively few people are completely goto allergic. Wirth for example feels quite free to use an occasional goto (see his coding of heap sort in the algorithms book). Sent via Deja.com http://www.deja.com/ Before you buy.