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,699cc914522aa7c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Structured exception information Date: Mon, 15 Jan 2007 17:32:37 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1168885771.30643.20.camel@localhost> <1168891576.30643.39.camel@localhost> <5NKdnTv2UZfVZTbYnZ2dnUVZ_vipnZ2d@megapath.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1168900357 29963 192.74.137.71 (15 Jan 2007 22:32:37 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 15 Jan 2007 22:32:37 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:1UKoGLNnPLL26YZrlzyrliZk6bE= Xref: g2news2.google.com comp.lang.ada:8145 Date: 2007-01-15T17:32:37-05:00 List-Id: "Randy Brukardt" writes: > We did look at this issue when working on the Amendment. The "obvious" > answers seem to have issues with visibility and compatibility with existing > Ada.Exceptions mechanisms. If we had done it right in Ada 95, we wouldn't have had the Ada.Exceptions kludge in the first place, so no need to be complatible with it. I don't know what the visibility issues were, so I can't comment on that. Do you happen to know which AI this was? Rant: The attitude about this feature during Ada 9X seemed to be: 1. Folks should not overuse exceptions. (I agree.) 2. Therefore, we should make exceptions painful to use. (Sorry, that does not follow.) The problem with (2) is: what about the cases where exceptions ARE appropriate? Pushing people in the direction of encoding information un-type-safely as Strings, or using global variables, or whatever is not helpful. It's like removing the guard rail from a dangerous curve in order to make drivers slow down. The language designer should alway assume that programmers are competent -- in this case, that they can decide whether exceptions are appropriate in any given case -- and not try to prevent people from doing bad things. (Preventing people from doing bad things by accident, however, is Good Language Design.) - Bob