3 ms·
> Features return a glorified tuple (Feature<TOutcome,TResult>) that combines an enum value that represents what the outcome was, with a value that represents t
by joebo 13y ago
> Features return a glorified tuple (Feature<TOutcome,TResult>) that combines an enum value that represents what the outcome was, with a value that represents the result of the operation.
Sounds similar to my understanding of what a monad is. If you have many cases of this, it might simplify the switch statement and improve maintainability.
http://devtalk.net/csharp/chained-null-checks-and-the-maybe-monad/ http://devtalk.net/csharp/chained-null-checks-and-the-maybe-...
http://stackoverflow.com/questions/674855/help-a-c-sharp-developer-understand-what-is-a-monad http://stackoverflow.com/questions/674855/help-a-c-sharp-dev...