Re:Go runtime: 4 years later
by peterashford on Wednesday September 28, 2022 @01:22AM
(#33004515)
I can't agree with that at all. Checked exceptions can all be bubbled up to a single catch if that's how you want to handle it. That hardly pollutes a codebase.
[ Parent
| on HN ]
Re:Go runtime: 4 years later
by EdwardDiego on Wednesday September 28, 2022 @03:29AM
(#33005167)
Sure. But the bubbling of checked exceptions adds a lot of "foo() throws DeepUnderlyingException", all the way up to your single catch.
And the worst part is when reading the code in such a situation, it can get very tricky to figure out exactly where the exception is thrown.
There's a reason that the JVM ecosystem has largely moved away from checked exceptions.