3 ms·
Java generics aren't powerful enough; an exception signature is a union type whose size varies. There's no way to declare that a method's exception signature de
by erik_seaberg 6y ago
Java generics aren't powerful enough; an exception signature is a union type whose size varies. There's no way to declare that a method's exception signature depends on the signatures of the arguments for each call. No way to take a lambda or method reference and throw whatever that could throw. Checking is nice but IMHO not worth giving up higher-order functions.
- ragnese 6y agoSounds like an issue with generics and lambdas in Java