News for hackers. Stuff that matters.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by phillipcarter on Thursday July 13, 2023 @07:54PM (#36717682)
Yep. This is similar to a viewpoint by Anders Hejlsberg and many on the C# team at the time: https://www.artima.com/articles/the-trouble-with-checked-exc...

> You see programmers picking up new APIs that have all these throws clauses, and then you see how convoluted their code gets, and you realize the checked exceptions aren't helping them any.

And he goes on to elaborate on how this gets more complicated when versioning is introduced into the mix.

Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by breadwinner on Thursday July 13, 2023 @09:23PM (#36718315)
Hejlsberg is a terrific compiler writer. Turbo Pascal was awesome! He is not a good language designer, however. The exception mess in C# is the proof. See my comment at the root of this thread.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by bheadmaster on Friday July 14, 2023 @01:45AM (#36719914)
I doubt you can evaluate man's skill through a single project. It's not nice to use ad hominem to advertise your own comment.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by 411111111111111 on Friday July 14, 2023 @11:45AM (#36725641)
Their comment was the one that this thread is bases on. They're merely pointing out that the original comment already gave an example why its a mess.

I disagree with their point though, in java the lib would've probably just converted the exception to a runtime exception so the API doesn't change...

Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by phillipcarter on Friday July 14, 2023 @10:17AM (#36724369)
Yes, not a good language designer responsible for (checks notes) one of the most-used and most-loved programming languages on the planet.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by interlocutor on Friday July 14, 2023 @11:02AM (#36724976)
Do you mean Turbo Pascal? He didn't design it, Niklaus Wirth did. Or do you mean C#? James Gosling designed most of that (C# got its start by copying 90% of Java). Do you mean TypeScript? That's mostly JavaScript.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by phillipcarter on Friday July 14, 2023 @11:59AM (#36725840)
You're certainly entitled to your opinions.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by peterashford on Sunday July 16, 2023 @04:43AM (#36744852)
Those are facts
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever by blackoil on Friday July 14, 2023 @12:58PM (#36726601)
I would say he is one of the better language designers. Unlike many language designed by theorists and academics, he understands how the engineers are using the language and how a feature is used/abused and develops around it.