Re:Thoughts on the “Guard” Proposal for Go's Error Handling
by layer8 on Sunday November 06, 2022 @08:22AM
(#33492304)
What's missing in Java is the ability for methods to abstract over the set of exceptions thrown by the methods it calls, via generics, for morethan a single exceptikn type. This would in principle be possible, similar to variadic template parameters in C++, and would solve the problem for lambdas and Streams etc. It's a bummer that Java doesn't provide this at present.
Java developers are really divided on the topic of checked exceptions, there is no consensus.
Java developers are really divided on the topic of checked exceptions, there is no consensus.