News for hackers. Stuff that matters.
Re:Why Checked Exceptions Failed by breadwinner on Sunday July 16, 2023 @09:42AM (#36746890)
Sorry, disagree. map() didn't even exist in Java until recently. It is convenience at the cost of some safety. If you're writing a non-critical or throw away code you may not care about strong guarantees. Personally I prefer strong guarantees over convenience. I would only use map() for things that can't throw checked exceptions. A for loop isn't that hard to write.

There are no comments on this comment yet.