comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <rm-dash-bau-haus@dash.futureapps.de>
Subject: Re: Help understanding the benefits of Ada's exception model
Date: Thu, 26 Jun 2014 17:25:10 +0200
Date: 2014-06-26T17:25:10+02:00	[thread overview]
Message-ID: <53ac3b56$0$6654$9b4e6d93@newsspool3.arcor-online.net> (raw)
In-Reply-To: <a7861962-ff0c-4c30-a916-b5c6e2afae01@googlegroups.com>

On 26.06.14 16:28, Patrick wrote:
> Sorry for answering my own post. I think I have not used the terms unchecked exception and check exceptions properly.  Better terms would be handling exceptions and handling error codes.
>
Right, and the usual answer is that _if_ you want non-local
transfer of control, then checking error codes just won't do.
You'd be using something like setjmp/longjmp in C.
the alternative is to handle error codes all the way up the
call chain. The resulting code is more spaghetti-like and it
will mix both return values and special return values in
the same syntactic structure.

I can't think of a language in use today that does not have
either exception handling, or else some way to check, at compile
time, that none can occur.

  parent reply	other threads:[~2014-06-26 15:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 11:42 Help understanding the benefits of Ada's exception model Patrick
2014-06-26 14:28 ` Patrick
2014-06-26 15:22   ` Dan'l Miller
2014-06-26 15:25   ` G.B. [this message]
2014-06-26 15:52     ` Patrick
2014-06-26 16:55     ` Niklas Holsti
2014-06-26 23:27       ` Georg Bauhaus
2014-06-26 16:08   ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox