|
|
|
|
|
by oftenwrong
1868 days ago
|
|
>The worst for me is that it's impossible to catch exceptions in lambdas. I don't take issue with your comment overall, but this is not true. You can catch exceptions within lambdas, and you can define functional interfaces that declare that they throw checked exceptions. |
|
My issue is that for something as everyday as "throwing exceptions", you have to define a separate interface, or catch it inside the lambda. The first option being the Evil Verbosity everyone is on about, the second essentially rendering the exception useless as an instrument.
[1] : https://stackoverflow.com/questions/18198176/java-8-lambda-f...