SuccincT
SuccincT copied to clipboard
Generic ValueOrError
Is it possible to use ValueOrError<TValue> or even ValueOrError<TValue, TError>?
I mean, what if you want to get a value of a POCO object (as value) and return an Exception (as error)?
Could not agree more, this looks a lot like Vladimir Khorikov's Result object in his functional courses.
Interesting. I hadn't really thought of using ValueOrError like that, but it does make sense. So I'll add support for ValueOrError<TValue, TError>, I think.
Need to document this new type in the wiki now that v4 is released.