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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1e4bb63e08046e1a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-24 18:17:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3DB89B83.2060609@acm.org> From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: is exception when others => null; smart? References: <3DB8204B.2080804@attbi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 25 Oct 2002 01:16:21 GMT NNTP-Posting-Host: 63.184.104.12 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1035508581 63.184.104.12 (Thu, 24 Oct 2002 18:16:21 PDT) NNTP-Posting-Date: Thu, 24 Oct 2002 18:16:21 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:30117 Date: 2002-10-25T01:16:21+00:00 List-Id: Wes Groleau wrote: > > I would recommend auto-insert: > > --[ exception > --[ when others => raise; Just as the area for the sequence of statements is empty, the area for exception handlers should be as well: begin exception end Joe; Now the coder has to think about what exception handling, if any, is appropriate in order for the code to compile. Too many developers don't think about exceptions unless they have to. The other suggestions allow the coder to not think about exceptions. This at least forces him to think, "Hey, I've got to delete this line to get it to compile.". In the process, maybe he'll realize that such-and-such an exception is possible, and the correct response is so-and-so. -- Jeff Carter "Mr. President, we must not allow a mine-shaft gap!" Dr. Strangelove