-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently there's only
Result.withDefault :
a -> Result x a -> awhich the issue suggests to replace with
-
Result.valueElseOnError/recover : (x -> a) -> Result x a -> a
which is lazy by default and makes it nearly impossible to forget error values.
-
additionally, an
andThenbut for the error case would be a common helpful operationResult.onErrorTry/recoverTry : (x -> Result a y) -> Result x a -> Result y a
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request