Make FsToolkit.ErrorHandling a superset of Cvdm.ErrorHandling?
See original GitHub issueThis library looks great! Good documentation and more comprehensive than Cvdm.ErrorHandling with regards to operators and choice of CEs (asyncResultOption
).
Currently Cvdm.ErrorHandling has certain important features I donāt immediately see in FsToolkit.ErrorHandling (having read the docs, not tested or browsed the code to any significant degree). I think Iād like for FsToolkit.ErrorHandling to be a superset of Cvdm.ErrorHandling and then simply retire the latter. The goals seem similar enough that I think this could be feasible, and it would benefit users by removing an unnecessary choice. How do you feel about that? Specifically:
-
Cvdm.ErrorHandling contains overloads on the
asyncResult
CE builder so that it can bind/returnResult<_,_>
expressions, not justAsync<Result<_,_>>
. This is a must for me as I useResult<_,_>
andAsync<Result<_,_>>
expressions interchangeably all the time (in the same CEs), and I wonāt move to another error handling library that doesnāt have this. Not sure how the overload trick will work withAsyncResultOption
though, since it has three wrappers instead of two. Might work fine, might not work. Still, supporting this inAsyncResult
is better than none. -
Cvdm.ErrorHandling contains more members on the CE builders. Not sure from the top of my head what the practical differences are, but running relevant unit tests in Cvdm.ErrorHandling against FsToolkit.ErrorHandling should surface any missing features and incongruities in behaviour.
-
Cvdm.ErrorHandling contains quite a few helpers in the
Result
andAsyncResult
modules (e.g.requireSome
,requireTrue
,requireEqual
) to make it syntactically simpler to do ad-hoc validation in CEs when separate functions arenāt really needed. See the readme for a couple of examples. -
Cvdm.ErrorHandling is
AutoOpen
ed. For the rationale behind this, see https://github.com/cmeeren/Cvdm.ErrorHandling/pull/1.
Thoughts?
Issue Analytics
- State:
- Created 5 years ago
- Comments:23 (23 by maintainers)
Sounds good, thanks š
Hi @cmeeren, All the helper functions from Cvdm.ErrorHandling is now part of FsToolkit.ErrorHandling version
0.0.14
.Will be working on CE next!