Wednesday, September 12, 2012

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 RSS · Twitter

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

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

Leave a Comment