News for hackers. Stuff that matters.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by ziml77 on Thursday July 13, 2023 @06:50PM (#36717172)
It's one of the worst I've seen. It adds so much cognitive overhead to reading the code and makes it more annoying to write. Every function call that can fail is followed by 3 lines to check for and return the error. The actual logic quickly gets lost in there.

If it wasn't for the error handling, I would probably use Go for some of my projects. It compiles to a native, self-contained binary and still has the convenience of a garbage collector, and of course has plenty of libs available due to popularity.

Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by SomeRndName11 on Friday July 14, 2023 @04:29AM (#36720997)
It does not have all that undpredictability of exceptions, and does not have nasty error handling logic of C. Do you know better alternative?