Hacker News new | ask | show | jobs
by erik_seaberg 2547 days ago
When Java finally got generics, it didn't add any support for generic sum types of checked exceptions.

  stream.map(f).collect(…)
should obviously be able to throw anything f could throw. But instead f is forced to wrap every checked exception, and so pretty much everyone has given up and started declaring new exceptions as unchecked.