vkhorikov / CSharpFunctionalExtensions

Functional extensions for C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proposal: Add functionality to return List of error result with Result class

nagtilaklaxman opened this issue · comments

#378 (comment)
Gave it some thought.
A new IResult compatible, convertible monad could make sense. Where ResultCollection is a category of higher order of IResult.

#378 (comment) Gave it some thought. A new IResult compatible, convertible monad could make sense. Where ResultCollection is a category of higher order of IResult.

It would also be cool to add IReason of why it failed, and also IError, such as what this library has: FluentResults

Edit:
By funny coincidence, the author of Fluent Results was greatly inspired by @vkhorikov and has quoted @vkhorikov many times: https://github.com/altmann/FluentResults#interesting-resources-about-result-pattern

Yes, he actually was one of the early contributors to this library.

Regarding IReason and IError -- I'd like to hear more about use cases for these classes.

Yes, he actually was one of the early contributors to this library.

Small world, its very cool to see how the ecosystem grows. Thank you for this @vkhorikov

Here is an interesting chat they are having over at FluentResults regarding 'railway programming': altmann/FluentResults#108

Regarding IReason and IError -- I'd like to hear more about use cases for these classes.

I agree, I will do some research on this and get back to everyone -- if anyone is faster than me, please do the same

Linking a related question: #427