14 Sep
2018
14 Sep
'18
7:05 a.m.
And my other question was, are we sure that anyone is using Outcome for this use case. If the answer approaches "no", that is, if nearly all users of Outcome use it only to design exception-free interfaces, it might be better to provide this functionality in a different library. Isn't that what optional is for? If you don't want value-or-error semantics but rather maybe-value semantics, then that's optional<>. Or did I misunderstood you?