DavidArno / SuccincT

Discriminated unions, pattern matching and partial applications for C#
MIT License
266 stars 15 forks source link

Add a new Success<T> type #10

Closed DavidArno closed 7 years ago

DavidArno commented 7 years ago

Success<T> would effectively be the reverse of Option<T>, in that it would either contain success (effectively, true) or a value of T.

This type should be implicitly castable to bool (assuming that's possible), such that success casts to true and a value of T casts to false.

DavidArno commented 7 years ago

"Naming things is hard".

This is so true. Still trying to work out the best name for the feature. Implementing it is trivial in comparison! 😕

DavidArno commented 7 years ago

v2.3.0 released.