An old article on Exceptions for the old argument about Exceptions...

I was recently reminded of Eric Gunnerson's 2001 MSDN article "Writing Exceptional Code". This pretty much sums-up my feelings:

"While it is theoretically possible to write code using error codes where all errors are correctly handled, it's not something that's ever observed in the wild"

Above all other arguments, this is the primary reason I advocate Exceptions over Error Codes. This fits in nicely with recently adopted philosophy of the Pit of Success.

No Comments