Closed alex35mil closed 5 years ago
For me, it would be a great change. Using Belt.Result
module with functionality like map
/isError
/isOk
gives great foundations for userland abstractions over re-formality
.
💯 agree, doing this.
Released in 1.0.0-beta.2
I'll upgrade my project to the latest version when I'll have some spare time. Probably weekend. Will create an issue in case of some problems. Thank you!
Before final
1.0.0
I want to discuss one more thing:result
type.From README:
Now it's not perfectly clear that both
Valid
&Optional
are OK and onlyInvalid
is show-stopper. It's also possible to mess something up by misusingOptional
constructor. My proposal is to leverageResult
type to make things perfectly clear:Thoughts?