Closed DavidArno closed 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.
Success<T>
Option<T>
success
true
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.
bool
false
"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! 😕
v2.3.0 released.
Success<T>
would effectively be the reverse ofOption<T>
, in that it would either containsuccess
(effectively,true
) or a value ofT
.This type should be implicitly castable to
bool
(assuming that's possible), such thatsuccess
casts totrue
and a value ofT
casts tofalse
.