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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6bf9d4ba0cfd8cb6 X-Google-Attributes: gid103376,public From: Jeff Carter Subject: Re: Announce: OpenToken 2.0 released Date: 2000/02/02 Message-ID: <38976784.E60FB54@earthlink.net>#1/1 X-Deja-AN: 580602164 Content-Transfer-Encoding: 7bit References: <3890C62B.18309585@telepath.com> <876unj$jcs$1@nnrp1.deja.com> <87799k$aai1@news.cis.okstate.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: Tue Feb 1 17:09:47 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 949453787 63.11.144.72 (Tue, 01 Feb 2000 17:09:47 PST) Organization: EarthLink Network, Inc. MIME-Version: 1.0 Reply-To: jrcarter@acm.org NNTP-Posting-Date: Tue, 01 Feb 2000 17:09:47 PST Newsgroups: comp.lang.ada Date: 2000-02-02T00:00:00+00:00 List-Id: Hyman Rosen wrote: > > Brian Rogoff writes: > > (1) Exceptions: raise a Not_Found when input is exhausted. Some people > > hate this because "Exceptions are only for error handling, not > > control flow!". OCaml (and SML too I think) use exceptions for this, > > and Ada sometimes does (try reading a file stream without using > > File_Type...) > > I don't like this much. > Exceptions are for error handling, not control flow :-) The Ada design team expressed a preference for shorter names when possible ("task" rather than "process"), so why didn't they use "error" instead of "exception"? The answer is that exceptions are for handling exceptional situations; not all exceptional situations are errors. -- Jeff Carter "We call your door-opening request a silly thing." Monty Python & the Holy Grail