Discussion about this post

User's avatar
Ext3h's avatar

Just a little nitpick: never, and I mean absolutely never catch exceptions as anything but a `const &`.

Compilers can eliminate most of the boiler plate code for the exception itself if you keep the exceptions nice and const. Don't, and the exception handling turns actually quite costly.

Sure, error codes are still much better, but exceptions ain't that bad either when at least used correctly.

Expand full comment
Yacob Cohen-Arazi's avatar

great overview!!

Expand full comment
2 more comments...

No posts