On 2003-09-24 18:24:44 +0000 Stan Shebs <shebs@apple.com> wrote:
This has been one of the most heavily-requested features for ObjC.
While
it's true that it's syntactic sugar, so is for(), and yet few suggest
that it should be removed from C. For that matter, many programmers
contend that ObjC and C++ are unnecessary syntactic sugar too... The
rationale for adding exception handling, aside from the incessant user
requests, is that it is hard to get right manually, plus the manual
solution involves fooling around with explicit flow control in the
form
of setjmp/longjmp, which you really want to hide whenever possible.
What I don't understand, is that we _already_ have an exception system,
so what was those requests about ?
If NS_DURING/NS_HANDLER names scared programmers, well, we could
define them as @try ... @catch :-)
But I don't see what's so interesting with the new exception system,
apart
to bring some incompatibilities ...
Someone could explain it to me ?