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=2.0 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_20, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,99222a5bd46ef3c9 X-Google-Attributes: gid103376,public From: Spam Hater Subject: Re: GOTO considered necessary (reworked) Date: 1997/06/17 Message-ID: <33A6FD8B.5032@no.such.com>#1/1 X-Deja-AN: 249160307 Sender: usenet@most.fw.hac.com (News Administration) X-Nntp-Posting-Host: sparc02 References: <5nn2fm$11dk$1@prime.imagin.net> <33A6A9C4.7B87@no.such.com> Organization: See Warning Below! Newsgroups: comp.lang.ada Date: 1997-06-17T00:00:00+00:00 List-Id: > I personally find returns very handy, even though I know perfectly well > they are gotos: > > [snip] > > it is very handy to read the procedure and immediately know that you > have the whole story if condition is true, without having to see if > there is some code following the end if. Or 'if' statements nested eight levels deep, each one checking for an error condition, and the deepest 'else' doing the real work. > (a little quiz, why do my messages occasionally end with ^Zdp? > I know the answer, I am just wondering if it is obvious :-) :-) My guess is you are accutomed to an editor which uses that pattern to save and exit, and when you type it by habit in another tool, you don't waste the time to edit it out. -- ---------------------------------------------------------------------- Wes Groleau, Hughes Defense Communications, Fort Wayne, IN USA Senior Software Engineer - AFATDS Tool-smith Wanna-be Don't send advertisements to this domain unless asked! All disk space on fw.hac.com hosts belongs to either Hughes Defense Communications or the United States government. Using email to store YOUR advertising on them is trespassing! ----------------------------------------------------------------------