News for hackers. Stuff that matters.
Re:Where Everything Went Wrong: Error Handling and Error Mes... by jdmichal on Friday February 19, 2021 @12:26PM (#26195445)
I'd like to just point out that Java didn't have exception chaining until 1.4. And suppressed exceptions were added in 1.7 along with the try-with-resources construct. I know 1.4 was a long time ago, but it was 4 years after 1.2, which is what I typically consider the start of Java becoming a dominant language.

I'm only posting this because I find a lot of people forgetting that Java has had a very long history at this point. And that many of the things we take for granted in the language today did not always exist. I still remember when generics were released. Get off my lawn.

Re:Where Everything Went Wrong: Error Handling and Error Mes... by brazzy on Friday February 19, 2021 @12:42PM (#26195660)
Oh, I've been around since the 1.2 days as well. Somehow, exception chaining didn't register as a big change when it happened. But yeah, incremental improvements have been pretty important as well.
Re:Where Everything Went Wrong: Error Handling and Error Mes... by jdmichal on Friday February 19, 2021 @02:10PM (#26196736)
I agree regarding the chaining. I don't even remember thinking twice about it when it was introduced. But the ability to transform exception types without losing the original context and stack trace is actually a pretty big deal!