News for hackers. Stuff that matters.
Re:Where Everything Went Wrong: Error Handling and Error Mes... by simiones on Friday February 19, 2021 @01:07PM (#26195957)
You have the same problem with error codes, don't you?

The bigger difference is knowing whether you should expect errors at all - with exceptions, you can forget to handle an error and you may screw up an important assumption, like not unlocking a Mutex if an Exception is raised. With error codes, you have the opposite problem: you may forget to check for an error, and continue to execute in a bad state.

There are no comments on this comment yet.