News for hackers. Stuff that matters.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by bedobi on Thursday July 13, 2023 @03:14PM (#36714560)
whatever, the point is exception allows and encourages people to catch less and more than they should
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by vips7L on Thursday July 13, 2023 @03:24PM (#36714708)
Sometimes top level code needs to do this. It's not always wrong. It's not always black and white in programming.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by bedobi on Thursday July 13, 2023 @03:37PM (#36714867)
> Sometimes top level code needs to do this

come on, it's not as if anyone disagrees with that, but that's extremely, extremely rare, overwhelmingly, callers are just dealing things like with UserNotFoundException, NullPointerException, what have you, and there's no reason why the compiler should happily let you catch Exception (or nothing) when it could just be giving you an honest object back

Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by wewtyflakes on Thursday July 13, 2023 @05:07PM (#36715996)
It has not been extremely/overwhelmingly rare in my experience. Further still, within the context of Java, exceptions are objects.