Re: Strong language about Cocoa and Qt.
Re: Strong language about Cocoa and Qt.
- Subject: Re: Strong language about Cocoa and Qt.
- From: Neil Tiffin <email@hidden>
- Date: Wed, 2 Jul 2003 06:37:26 -0400
At 1:48 AM -0500 7/2/03, Eugene Lee wrote:
On Tue, Jul 01, 2003 at 11:57:32PM +0200, Marco Scheurer wrote:
:
: An uncaught exception in Objective-C kills the program too. Catching
: exceptions as to not to crash the program has nothing to do with the
: language, but how it is used (you could do the same thing in C++). And
: crashing or not a deployed application is an engineering tradeoff.
: There could be good reasons not to crash after all. The current
: operation has probably failed, but the app might still be usable in
: it's next passage in the run loop. I agree that a quietly writing
: something in the error log is not very user-friendly, but then crashing
: is even less user friendly, if more informative that something went
: wrong.
I guess the question comes down to a question of whether it's better for
a program to crash or to continue running with an increased possibility
of outputting less correct results.
An uncaught exception infers a situation not considered by the
developer, not necessarily incorrect input. The output, correct or
not depends on the robustness of the code.
Neil
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.