Re:Where Everything Went Wrong: Error Handling and Error Mes...
by pjmlp on Saturday February 20, 2021 @12:12PM
(#26205802)
His point doesn't stand in any programming language that doesn't enforce error checking, exceptions or not, you will be surprised at any possible execution point if you don't check error values from previous call.
At least with exceptions you get a "I told you so" if something does happen, and a defined way to force application termination if the error isn't properly handled.
Given the remarks on the C++ post, I assume he belongs to the /EH- side of pitch forks and torches, which actually goes against the C++ best practices at Microsoft, https://docs.microsoft.com/en-us/cpp/cpp/errors-and-exceptio..., which leaves a feeling of a kind of biased article in some way.
At least with exceptions you get a "I told you so" if something does happen, and a defined way to force application termination if the error isn't properly handled.
Given the remarks on the C++ post, I assume he belongs to the /EH- side of pitch forks and torches, which actually goes against the C++ best practices at Microsoft, https://docs.microsoft.com/en-us/cpp/cpp/errors-and-exceptio..., which leaves a feeling of a kind of biased article in some way.