RandomSkunk.Results

A functional alternative to exception-based error handling in C#.


RandomSkunk.Results

RandomSkunk.Results is a library that provides an alternative approach to exception-based error handling in C#. Using this approach, also known as railway oriented programming, methods will – instead of throwing an exception – return a result object that explicitly represents either the success or the failure of the method. In terms of functional programming, a result object from this library is both a functor and a monad, which in C# is basically just a fancy way of saying that a result object has Select and SelectMany methods and can be composed using LINQ syntax.