News for hackers. Stuff that matters.
Re:Java 18 / JDK 18: General Availability by ahtihn on Tuesday March 22, 2022 @02:04PM (#30769360)
Okay,so what's a better way to do error handling?

Returning an Either<Result, Error> is pretty much the same thing conceptually. Either you propagate the error or you handle it.

Re:Java 18 / JDK 18: General Availability by dfee on Tuesday March 22, 2022 @04:46PM (#30771308)
I'm just suggesting that Checked Exceptions aren't well enough adopted and there's grey area between what constitutes a checked / unchecked exception.

I have no problem with Either<Error, Result> though.