Re: Common exception handling



On Tue, 26 Aug 2008 09:49:59 -0700 (PDT), Adam Beneschan wrote:

Maybe this use of CASE should be allowed, even if we don't go all the
way and make exceptions first-class entities in other ways. What does
anyone else think... would it be a worthwhile feature to propose
adding? Or is it just too "special" (if we added this, others would
ask, well why shouldn't we allow CASE on a string, or a record, or a
container, or just expand it using some user-specified relational
operator so that we can use it for everything...)?

Right, I fully agree. Ada is overloaded with "special" features.

I prefer exceptions become a "normal" discrete type (only in the interface
of). I wished to have ranges of exceptions so that one could define a group
of related exceptions, and be able to extend such groups. This could the
first step in order to make exceptions contracted.

There is a similar important case, the type tags. Tags and exceptions have
much in common. It would be very nice to find a generic mechanism for
handling such things. That would remove a lot of "magic" from the language,
IMO.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.



Relevant Pages

  • RE: How can you change a recurrence without losing exceptions?
    ... This design error makes recurring appointments nearly useless and is ... rather than making a feature technically reliable. ... "Randy" wrote: ... > exceptions to the changes will be lost. ...
    (microsoft.public.outlook.calendaring)
  • Re: False exceptions?" (was Re: theme of the week: tools
    ... I'm the dope that co-wrote this thing, so here's the technical background: ... The "false exceptions" thing is a technical limitation of detecting ... necessarily imperfect but useful feature with not having the feature at ... utility of ignoring exceptions with under-explaining the false positives. ...
    (comp.lang.python)
  • Re: #pragma cancel_handler
    ... FWIW, according to the above link, a cancel_handler is a C++ feature. ... cancel_handler in ILE C, because that feature is not part of the C ... There are no exceptions in C, ... That forum might be comp.lang.c++, ...
    (comp.lang.c)
  • Re: C++0x and Threads - a poor relation to Adas tasking model?
    ... The point is, if you use some feature X, you should not have ... to pay the cost of feature Y that you do not use, ... C++ and Ada both share this philosophy. ... you will always pay a speed penalty for exceptions (e.g., ...
    (comp.lang.ada)
  • Re: Structured exception information
    ... Or are you saying there's something specific about ... the "exceptions as objects" feature we're discussing that makes it hard ... But I fail to see how exceptions with Strings attached ...
    (comp.lang.ada)