According to the Curry-Howard correspondence the sum-type aka tagged-union is the equivalent of disjunction, logical OR
Why is this the case? Is it not closer to XOR? (a or b) implies that it could be a or b or both, whereas Either a b must be a or b but never both.
Curry-Howard correspondence says that an element of
Either a brepresents a proof ofa or b. To prove a disjunction it's enough to prove (provide an element of)aorb. You do this by constructingEither a busing eitherLeft aorRight b.