On 09/14/2014 07:42 PM, Andrei Alexandrescu wrote:
On 9/14/14, 6:17 AM, "Marc Schütz" <[email protected]>" wrote:
What if the operation failed without producing an exception? I.e., if we
wrap an API that signals errors by returning false for example, do we
really need to create an exception just to store it in `r.exception`?
UnspecifiedException
'Maybe' has traditionally denoted a type constructor which adds exactly
one additional possible state to the underlying type, so this type that
stores either a value or an exception should IMO be a separate construct.