Hi Marshall,
While all this error and exception discussion is going
down, I have to
mention this piece:
http://joeduffyblog.com/2016/02/07/the-error-model/
The author worked at MS on their "midori" research OS, and discussed
what went into their decisions around using return codes, exceptions,
etc. I felt it was a nice breakdown of the pros and cons of the
different approaches, and fleshed out the concepts in my mind a bit.
I thought others might enjoy it as well.
Thanks, it was a long read but enjoyable.
That said, I absolutely loathe exceptions with all my
heart.
I'm not a fan either. The exceptions Joe introduces above are more of a
simpler syntax for handling return codes. He gives the expanded
equivalent at one point.
I also liked his enthusiam for ‘abandonment’, similar to a BUG() macro.
--
Cheers, Ralph.