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,fd8f3d2ebf73a4b7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-21 09:01:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Whether to raise exception or End_of_List function Date: 21 Nov 2001 11:01:04 -0600 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1006362066 12101 192.135.80.34 (21 Nov 2001 17:01:06 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Wed, 21 Nov 2001 17:01:06 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:16799 Date: 2001-11-21T11:01:04-06:00 List-Id: In article , Preben Randhol writes: > My question is which is the better solution; Exception or a End_of_List > function and which would have fewer side effects? Exceptions are supposed to be rare events. In many applications reaching the end of a list is fully expected and not necessarily rare. Exception processing can take significant overhead, since compiler implementors know it will be rare.