News for hackers. Stuff that matters.
Re:Java 18 / JDK 18: General Availability by vips7L on Tuesday March 22, 2022 @12:01PM (#30767705)
No one really uses checked exceptions. But I agree they suck, IOException is the bane of my existence. It's the #1 reason why I don't like Rust or Go. Checking errors is dreadful.
Re:Java 18 / JDK 18: General Availability by pkolaczk on Tuesday March 22, 2022 @12:24PM (#30768081)
> Checking errors is dreadful.

That's true, but that doesn't mean we should pretend the problem does not exist. Using unchecked exceptions is sweeping things under the carpet. Generally unchecked exceptions should be used only for bugs (array index out of bounds) or unrecoverable situations (JVM crash, no memory). I/O does not belong there.