3 ms·
>There's a certain irony that the presenter quickly dismisses exception-based error handling, and then the first example handles an error by printing a message
by coldtea 8y ago
>There's a certain irony that the presenter quickly dismisses exception-based error handling, and then the first example handles an error by printing a message and exiting -- exactly what an unhandled exception does.
That would indeed be ironic if that case was the only thing exception-based error handling entails. That is, if every program just let all exceptions go uncaught. Which is nowhere near why exception handling was invented, or how it's used in practice.