markphelps / optional

Optional is a library of optional Go types
https://godoc.org/github.com/markphelps/optional
MIT License
209 stars 19 forks source link

Add `Result<T,E>` generator, like Rust #19

Open alexec opened 3 years ago

alexec commented 3 years ago

I think that would be a great addition.

markphelps commented 2 years ago

@alexec I'm unfamiliar with Rust, would you mind elaborating a bit on what you'd like to see?

Zireael07 commented 2 years ago

Result is basically the same as Option, just returning Err instead of None and being differently named ;)