expectations 0.1.0
Paul Backus
snarwin at gmail.com
Tue Sep 4 17:44:03 UTC 2018
On Sunday, 2 September 2018 at 06:59:20 UTC, Paul Backus wrote:
> expectations is an error-handling library that lets you bundle
> exceptions together with return values. It is based on Rust's
> Result<T, E> [1] and C++'s proposed std::expected. [2] If
> you're not familiar with those, Andrei's NDC Oslo talk, "Expect
> the Expected" [3], explains the advantages of this approach to
> error handling in considerable detail.
expectations 0.2.0 is now available, with the following updates
- `hasValue`, `value`, and `exception` now work for const and
immutable `Expected` objects.
- `Expected!void` has been removed.
- `map` and `andThen` can now be partially applied to functions,
"lifting" them into the Expected monad.
- The documentation has been improved based on the feedback given
in this thread.
More information about the Digitalmars-d-announce
mailing list