3 ms·
Regardless of what the style guide says, multiple studies of real-world exception handling correctness have been done, and the results are clear: Very few (if
by hedora 7y ago
Regardless of what the style guide says, multiple studies of real-world exception handling correctness have been done, and the results are clear: Very few (if any) real-world codebases correctly handle exceptions.
As the article points out, correct exception handlers would grow exponentially with program size. People can’t reason about that, so they don’t handle things like multiple error paths, or they conflate one error code with another, and so on.
The results hold across programming languages.