A minimal D library to wrap return values or error of functions.
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
Result is a D library which provides the type
Result, which wraps the return value of a function or an
Either from Scala or
Result from Rust.
Result(T) is just an alias for
SumType!(T, Error), so it can be used with any function from
Result!int result = 5; result.match!( (int i) => i == 5, (Error e) => exit(1), ));
- Registered by asperan
- 1.0.0 released 11 months ago
- Copyright © 2021, Alex "asperan" Speranza