fsprojects / FSharpx.Extras

Functional programming and other utilities from the original "fsharpx" project
https://fsprojects.github.io/FSharpx.Extras/
The Unlicense
682 stars 146 forks source link

Results module lacks functionality #389

Closed gdziadkiewicz closed 4 years ago

gdziadkiewicz commented 4 years ago

Description

Result module lacks the functionality provided by Option module. Missing stuff:

I took the names from Option module, but wouldn't mind coming with something better.

Repro steps

N/A

Expected behavior

N/A

Actual behavior

N/A

Known workarounds

N/A

Related information

N/A

panesofglass commented 4 years ago

Should this be added, or should we just direct people to Chessie and obsolete this functionality?

gdziadkiewicz commented 4 years ago

IMO it should be added. Chessie is built around its own type (https://github.com/fsprojects/Chessie/blob/master/src/Chessie/ErrorHandling.fs#L7-L11) that's different from the one exported by FSharp.Core. Result module in FSharp.Extras provides functions and builder to work with Result provided by FSharp.Core.