Wednesday, September 12, 2012 [Tweets] [Favorites]

Exceptions as Fatal

Raymond Chen (via Kyle Sluder):

In Win32, exceptions are considered to be horrific situations that usually indicate some sort of fatal error. There may be some select cases where exceptions can be handled, but those are more the unusual cases than the rule. Most of the time, an exception means that something terrible has happened and you’re out of luck. The best you can hope for at this point is a controlled crash landing.

Just like in Cocoa.

1 Comment

And Win32 also has error codes gone uselessly bloody mad, just like Carbon.

Cocoa has the closest I've seen to a good balance.

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment