2 ms·
Weak type system made it incompatible with function types in practice, and poor compositional tools made it hard to deal with. In Rust, you have entire librari
by BlarfMcFlarf 2y ago
Weak type system made it incompatible with function types in practice, and poor compositional tools made it hard to deal with.
In Rust, you have entire libraries around the ergonomics and management of errors to match different applications. In Java, you are stuck using an error management strategy dictated by the error type itself.
- kaba0 2y agoJava is perfectly capable of expressing this thought, it has sum types, so the Result-type road is absolutely available to it. (Optional<T>=Maybe T is part of the JDK even) Although, it might not optimize as well, as this is not common practice.