News for hackers. Stuff that matters.
Re:Checked exceptions: Java’s biggest mistake (2014) by erik_seaberg on Friday September 11, 2020 @04:47PM (#24447178)
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.
Re:Checked exceptions: Java’s biggest mistake (2014) by ragnese on Friday September 11, 2020 @05:54PM (#24447747)
Sounds like an issue with generics and lambdas in Java