News for hackers. Stuff that matters.
Re:Error Handling Patterns by tialaramex on Thursday May 04, 2023 @09:36AM (#35815098)
> exceptions are misused to handle common and unexceptional non-success cases.

This is my insurmountable objection to Exceptions.

What people will tell you is that you should only use Exceptions for "real" error conditions which should be rare, but the problem is that the people deciding whether to use Exceptions are writing some library, whereas the people who know whether this is a rare condition are the application writers, using that library only second or third hand, or maybe via some third party component. You might as well provide a language where the primitive integer types don't have a specified size so programmers don't know if numbers will fit in them...

... oh right yeah. That checks out.

Re:Error Handling Patterns by masklinn on Thursday May 04, 2023 @12:41PM (#35818267)
It's also an interesting objection because it means that when you have exceptions... you still need an error handling method for non-exceptional errors.