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.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,86fd56abf3579c34 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: State machines and Goto's (was Re: Should internet support software be written in Ada?) Date: 1995/04/20 Message-ID: #1/1 X-Deja-AN: 101233947 distribution: usa references: <3kaksj$iur@isnews.calpoly.edu> <3ki9t8$c8l@Starbase.NeoSoft.COM> <3m3j73$php@tali.hsc.colorado.edu> <1995Apr7.141054.17419@sei.cmu.edu> <9511002.21479@mulga.cs.mu.OZ.AU> <3n5u2m$72f@kocrsv08.delcoelect.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1995-04-20T00:00:00+00:00 List-Id: Bill Winn, I am not sure your soapbox is appropriate, it seems like you were triggered by the 15-20 parameters and had not followed the original thread, which had to do with duplicated code from nested conditionals. So we are talking about a section of code referencing 15-20 local variables. That's not so terrible .... In a language with no nested procedures (perhaps with a 1 character name or a 1 character name with some special characters), this can be a real pain. But if you have nested procedures, then this is a good place to use them. I also note that this is a place where some programmers will find it clearer to use a goto (of course other programmers take one look at a goto, and it is like seeing an upside down cross :-) I would certainly prefer the single goto to a junk global procedure with 15-20 parameters!