Re:Java’s Checked Exceptions Are Evil? (2015)
by smsm42 on Wednesday September 26, 2018 @12:07PM
(#18077353)
The biggest WTF for me was that checked exceptions are not compatible with lambdas. So any concise elegant code that Java 8+ allows you to write, with all new streams API and all that goodness, does not work the second you need to use any class that has checked exceptions mentioned. I couldn't believe it when I first learned about it - but it's true: https://stackoverflow.com/q/27644361/214196 I still can't believe anybody thought it's a good idea to do it this way.
[ Parent
| on HN ]
There are no comments on this comment yet.