|
|
|
|
|
by theoh
2584 days ago
|
|
Sum types arguably permit a form of out-of-band return value. A function that returns a sum type has the choice of returning the usual type (an integer value, say) or an error value of some other type. IMO this counts as a kind of out-of-band arrangement because it doesn't involve using one of the normal return values to signal error. https://en.wikipedia.org/wiki/Semipredicate_problem |
|