CSharpFunctionalExtensions icon indicating copy to clipboard operation
CSharpFunctionalExtensions copied to clipboard

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

Open nagtilaklaxman opened this issue 3 years ago • 5 comments

nagtilaklaxman avatar Jul 24 '22 23:07 nagtilaklaxman

https://github.com/vkhorikov/CSharpFunctionalExtensions/pull/378#issuecomment-1176496173 Gave it some thought. A new IResult compatible, convertible monad could make sense. Where ResultCollection is a category of higher order of IResult.

ProphetLamb avatar Aug 19 '22 12:08 ProphetLamb

#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

jeffward01 avatar Dec 19 '22 02:12 jeffward01

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.

vkhorikov avatar Jan 02 '23 03:01 vkhorikov

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': https://github.com/altmann/FluentResults/issues/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

jeffward01 avatar Jan 05 '23 01:01 jeffward01

Linking a related question: https://github.com/vkhorikov/CSharpFunctionalExtensions/discussions/427

vkhorikov avatar Oct 14 '23 10:10 vkhorikov