News for hackers. Stuff that matters.
Re:C++ Error Handling: Why Use Eithers in Favor of Exception... by koja86 on Wednesday May 17, 2017 @04:45AM (#14356639)
I am quite used to C++ exceptions and strongly favor them against error codes mainly because of error handling decoupling and the fact that exception (unlike return code) cannot be passively ignored - if you want to swallow it you need to do it rather explicitly. If you forget to handle exception it crashes loud and that I prefer.

If anything I would be very please if we got advanced exception catchers in C++. Recently I drooled over Ada exception handling capabilities: https://en.wikibooks.org/wiki/Ada_Programming/Exceptions#Exc...

There are no comments on this comment yet.