3 ms·
> you cannot "forget" to propagate an exception Not only that, but you don't have to write a ton of boilerplate to manually propagate errors back up the stack
by usefulcat 7y ago
> you cannot "forget" to propagate an exception
Not only that, but you don't have to write a ton of boilerplate to manually propagate errors back up the stack since the compiler will do that for you. And it will do it in a consistent, well-defined manner.
- wvenable 7y agoFurthermore, properly structured C++ applications with RAII use the same path for normal cleanup for exceptional cleanup meaning that you're always covering that code. You don't have an entirely separate error handling path that only gets executed for errors.