Comments (4)
Thanks :)
I think this is answered so going to close.
from fstoolkit.errorhandling.
Yeah I struggle with what the correct terminology would be. I think it goes into bind
territory since bind
infers unwrapping a thing to operate on. So we would end up providing for AsyncResult abind
which takes a 'a -> Async<Result<'b,'c>>
and a bindAsync
which takes a 'a -> Async<'b>
and any other bindXYZ
for Tasks/Jobs/Promises and possible variants for the Error
path as well but I tend to find needing to bind on the error path less and map
s tend to cover most cases.
from fstoolkit.errorhandling.
Even though we don't provide all the functional bindXYZ
variants we do provide overloads for them in our computation expressions, which many people like using since it tends to read nicer.
from fstoolkit.errorhandling.
OK, thanks. I am still wrapping my head around composing functions (>>
and |>
) and using computation expressions (this is new, have not seen anything like this, expect for Haskell do
) and I can always just add these methods as they are easy to write (at least for me now) and most other things are implemented in this superb FsToolkit already (it reminds me of jOOλ - The Missing Parts in Java 8 jOOλ improves the JDK libraries in areas where the Expert Group's focus was elsewhere.)
from fstoolkit.errorhandling.
Related Issues (20)
- F# 6 task CE support (instead of Ply) HOT 1
- Task to AsyncResult transition wraps `Exception` into the `AggregateException` HOT 13
- Seq.sequenceResultM returns a list instead of a seq HOT 1
- TaskResult.ofTask? HOT 2
- Use ListCollector on List operations to improve perf HOT 4
- List.traverseValidationA' should be private? HOT 1
- Add explicit type parameters to ignore functions HOT 5
- Move TaskResult (and friends) to core FsToolkit.ErrorHandling package HOT 9
- TaskResultCE breaks with a bind in branching such as if HOT 2
- List.traverseResultA and friends have x @ y on the error branch, this could potentially blow up HOT 5
- Add Option.maybe
- Task wrapped result + option helpers HOT 1
- Worried about the Diamond dependency problem HOT 6
- Documentation for Validation operators mentions Bind (>>=), but the library doesn't implement it HOT 1
- Should List.sequenceValidationA preserve order? HOT 2
- FSharp.Core version warning (net7.0) HOT 14
- Make Result.defaultWith accept error, or remove it HOT 2
- Overload issues with TaskResult on generic functions HOT 2
- Add Option.ofPair HOT 5
- Add asyncValidation CE, or make asyncResult (and result?) CEs work with 'and!' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fstoolkit.errorhandling.