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,436ac666600e5ab3 X-Google-Attributes: gid103376,public From: randhol+nospam@pvv.org (Preben Randhol) Subject: Re: Exception Handling Date: 2000/06/02 Message-ID: #1/1 X-Deja-AN: 630173456 References: <3HCY4.29157$sB3.10828@news.indigo.ie> <3933DAF3.35F40B3A@utech.net> <3936E41C.FCDE89D6@acm.org> X-Complaints-To: usenet@itea.ntnu.no X-Trace: kopp.stud.ntnu.no 959941703 18814 129.241.83.82 (2 Jun 2000 10:28:23 GMT) Organization: Norwegian university of science and technology User-Agent: slrn/0.9.6.2 (Linux) NNTP-Posting-Date: 2 Jun 2000 10:28:23 GMT Newsgroups: comp.lang.ada Date: 2000-06-02T10:28:23+00:00 List-Id: On Thu, 01 Jun 2000 23:31:06 GMT, Jeff Carter wrote: >and signal an invalid string by raising an exception. Whether you agree >that raising an exception is appropriate, why would you write another >subprogram to parse a string for a floating-point value when you can >reuse these existing, robust, and well-tested subprograms? I agree with you. I guess one can draw from the answers (thanks all) that one should not use exceptions to guide the flow of the program when one can use an if instead. -- Preben Randhol -- [randhol@pvv.org] -- "Det eneste trygge stedet i verden er inne i en fortelling." -- Athol Fugard