This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Merge objc-improvements-branch to mainline
- From: Nicolas Roard <nicolas at roard dot com>
- To: Stan Shebs <shebs at apple dot com>
- Cc: Alexander Malmberg <alexander at malmberg dot org>,gcc-patches at gcc dot gnu dot org, discuss-gnustep at gnu dot org
- Date: Thu, 25 Sep 2003 00:55:41 +0100
- Subject: Re: PATCH: Merge objc-improvements-branch to mainline
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 ?
thanks,
--
Nicolas Roard <nicolas@roard.com>
PGP : http://www.roard.com/download/key.gpg.asc
http://www.petitiononline.com/laafs/petition.html
Work for something because it is good, not just because
it stands a chance to succeed. - Vaclav Havel