Hacker News new | ask | show | jobs
by joebo 4620 days 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-...

http://stackoverflow.com/questions/674855/help-a-c-sharp-dev...