Re:Overhead of Returning Optional Values in Java and Rust
by valenterry on Saturday October 16, 2021 @09:40PM
(#28893233)
It's pretty much a solved problem. Just use a language that has better ergonomics for errors.
Scala's ZIO is one of the better examples if you are interested to look into an alternative.
so we put on our big-dev pants and build all sorts of structures around handling errors to make it more sound/ergonomic.
but at the end of the day:
so we haven't helped the situation much, but some of these answer like catch/throw have really unpleasant consequences - we may have made it worse