3 ms·
But it's defined as 'Result error value', which means you can just make 'error' a union type, and now you have multiple kinds of exceptions. When you specify an
by jmite 12y ago
But it's defined as 'Result error value', which means you can just make 'error' a union type, and now you have multiple kinds of exceptions. When you specify an error type, you're basically specifying all the types of exceptions that the evaluation can raise.
- bjz_ 12y agoBut it would be less descriptive from an API point of view. Which type is the return value? Of course we are now in the land of hypotheticals.