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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7d3cb5920e882220 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!out01a.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Exceptions References: <5947aa62-2547-4fbb-bc46-1111b4a0dcc9@x69g2000hsx.googlegroups.com> <475c688f$0$17524$9b4e6d93@newsspool4.arcor-online.net> From: Stephen Leake Date: Tue, 11 Dec 2007 03:07:19 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:FUuxIT5/y7EhlaVWJPniKzj4kh0= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 57bd6475e4533e05e48ed12884 Xref: g2news1.google.com comp.lang.ada:18888 Date: 2007-12-11T03:07:19-05:00 List-Id: Georg Bauhaus writes: > Robert A Duff wrote: > >> when Funcs_Important_Exception => >> -- >> raise Program_Error; >> Why on earth would anybody write "null;" there?! >> > > "We know that when this library routine complains, > it doesn't concern us. Besides, why should we pester > the customer or the user with messages and tracebacks that > do not matter?" (In some cultures, openly announcing errors > is not the preferred strategy ;-) For third party libraries that I can't fix, I agree; I have code like that myself. Although I also strive to change the way I use the library to avoid the bug, but sometimes that's not possible. For code I have control over, I agree with Bob, except I use a different exception; raise Programmer_Error if you've detected a bug. -- -- Stephe