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 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: "Michael P. Walsh" Subject: Re: No Go To's Forever! Date: 2000/03/22 Message-ID: <38D92246.9B53E842@pacbell.net>#1/1 X-Deja-AN: 600980557 Content-Transfer-Encoding: 7bit References: <38D7B41D.B3494C6A@lmco.com> <8b8m2e$8201@news.cis.okstate.edu> <8b9fk3$l18$1@nnrp1.deja.com> <38D8DFC2.778826FB@cadence.com> <8barci$4ks$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-la.pbi.net 953754300 206.170.218.97 (Wed, 22 Mar 2000 11:45:00 PST) Organization: Pacific Bell Internet Services MIME-Version: 1.0 NNTP-Posting-Date: Wed, 22 Mar 2000 11:45:00 PST Newsgroups: comp.lang.ada Date: 2000-03-22T00:00:00+00:00 List-Id: Robert Dewar wrote: > I guess the burden here is to explain why the goto formulation > is so horrible. Yes, it slightly discourages this control flow > form, but that's probably a good idea, if you can avoid exit's > and continue's in loops without doing damage to the code that's > a good idea. Is it so hard to say that the problem with the goto is not the goto function, but what many people have done with it? People are quite capable of writing good code in assembly language, but it is likely to be quite hard to read and understand unless it is well commented. I spent many years as a Fortran programmer and started out writing quite a bit of "spaghetti code". Then I read some of the articles on structured program and decided they made sense. I also note that you can write good structured code while using goto's and write some very poorly organized code without a single goto. As far as this Ada newsgroup, I will note that this is a far more general programming language discussion and actually has little to do with Ada which, as mentioned, does have a goto function. Mike Walsh