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_40, 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/19 Message-ID: <33A9717D.3016@no.such.com>#1/1 X-Deja-AN: 251157468 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-19T00:00:00+00:00 List-Id: > An exception is even *worse* than a goto, since it's more powerful: It > jumps to a run-time-determined place, which can't necessarily be > determined by reading the source code. And that place can be very far > away in the program (whereas a goto is local to a single subprogram). Being more powerful doesn't make it worse. One could argue that when exceptions are only raised for error conditions, they are not nearly as dangerous as a goto which is designed (or hacked) into the "normal" operation. (Aside: the way some people code, the destination of an Ada goto _can_ be far away--in a 4,000 SLOC subprogram.) -- ---------------------------------------------------------------------- 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! ----------------------------------------------------------------------