3 ms·
Just handle your catched exceptions? It's not that hard. () -> { try { // do work } catch (IOException ex) { throw new UncheckedIOExc
by vips7L 7y ago
Just handle your catched exceptions? It's not that hard.
() -> {
try {
// do work
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
I also agree with Goetz that extension functions aren't something we need.
- pjmlp 7y agoNot only isn't hard, one can write a generic utility method. Regarding extension methods, while they are nice, with import static it just a matter where the extended type comes, big deal. And from experience in .NET world, hunting them down isn't always fun, even if they are just Ctrl+F12 away.
- deleted 7y ago[deleted]
- int_19h 7y agoWhat's the point of even having checked exceptions, if you're going to have an unchecked counterpart for every one of them just so that you can flow them through lambdas?
- cryptos 7y agoIt is not hard but cumbersome, ugly and ruins readability when used a lot.