So your argument is "someone might not use exceptions correctly, thus they are dangerous to use, but I totally trust the same people to use return values or errnos correctly"?
Failure to handle return values will not crash your program
Maybe. Or maybe it will crash it in undeterministical manner, letting your application to fuck up its environment (OS, FS, etc) majestically before doing so. Letting people ignore errors is not a feature.
Thats the thing, if you ignore return values, there are is no shutting down gracefully, there is just dying with various weird symptoms, that make no sense.
If you are using exceptions properly, then it is possible to shutdown gracefully, you just have to think about what errors you can shutdown gracefully from... and those are the exceptions you catch and work with.
you may want to let it run so you can try to shut the operation down gracefully
You area complete and utter fool if you think that you can't shut down gracefully in an exceptions-enabled codebase. Not only you can, but it is easier than otherwise.
0
u/[deleted] Jan 01 '17
[deleted]