4 ms·
For error handling they could add error propagation operator `?` from Rust. In Java it could propagate "throws" from the expression it's applied to the signatur
by scotty79 2y ago
For error handling they could add error propagation operator `?` from Rust. In Java it could propagate "throws" from the expression it's applied to the signature of a method that contains it. In Rust it's a bit awkward becuse you need to adjust return type. Since Java tracks exceptions separately it would be completely unobtrusive and ultraconvenient.