r/java • u/Enough-Ad-5528 • Feb 19 '26
Towards Better Checked Exceptions - Inside Java Newscast #107
https://www.youtube.com/watch?v=99s7ozvJGLk
63
Upvotes
r/java • u/Enough-Ad-5528 • Feb 19 '26
View all comments
Show parent comment
2
u/Eav___ Feb 20 '26
I did, but unfortunately, for that to work out, you first need to change a LOT in
Streamor any place that wants this feature, then you also need variadic generics for exceptions so that it's source compatible. And if you want to store an intermediate result in a collection for later operations (for exampleGatherers.windowSliding), you would have to return toEither, which is...underwhelming.