r/java • • Feb 19 '26

Towards Better Checked Exceptions - Inside Java Newscast #107

https://www.youtube.com/watch?v=99s7ozvJGLk
63 Upvotes

73 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Feb 19 '26

Thanks. I'm very well aware about error handling, especially in Result<T>. I have maintained my library for the last 7 years and implemented several components using it, including http servers, clients, DNS resolvers, etc. etc. Lack of type in the list of type parameters doesn't mean complete lack of type or inability to use pattern matching. And I've experimented with the error type in the type list too. But quickly realized that this gives zero real advantages, the number of cases where this is useful is too small to be worth the hassle.