3 ms·
Result types are exceptions with different performance characteristics. Like, handling a checked exception (Java) and a Google-cpp StatusOr<T> or a rust Result
by joshuamorton 7y ago
Result types are exceptions with different performance characteristics.
Like, handling a checked exception (Java) and a Google-cpp StatusOr<T> or a rust Result<T> provide extraordinary similar code. Unchecked exceptions provide a bit of extra dynamism, and languages without either are anti-user.
- UK-Al05 7y agoI find result and option types compose nicer using monadic style composition.