Exception or Either monad in C#

后端 未结 5 657
庸人自扰
庸人自扰 2021-01-31 20:56

I am trying to grok get a preliminary understanding of monads.

I have a data layer call whose result I would like to return monadically either as a result e

5条回答
  •  旧巷少年郎
    2021-01-31 21:31

    It's worth noting that there are C# libraries available now that contain implementations of Either:

    language-ext library is available for .Net 4.5.1 and .Net Standard 1.3

    LaYumba library is available for .Net Standard 1.6 and .Net Core 1.1.

    Both libraries are well documented, with LaYumba being used as the basis of the Manning book Functional Programming in C#.

提交回复
热议问题