First, some background: recently in learning more about functional programming I saw one use for coproducts that surprised me a little bit: A function $f: A \rightarrow B \coprod C$ may result when considering a computation that starts with an $a \in A$ and results with an element of $B$ unless "something exceptional happens" in which case it results in an element in $C$ that describes / paramaterizes some sort of
- computational defect
- failure mode
- deformity
- irregularity .
This was surprising because before that point I had considered the two sides of a coproduct to be reversible, but they can no longer be considered so if the first set is designated as the collection of "normal" outputs and the second set is designated as paramaterizing an "exceptional" result.
My question: are there other places where an function/arrow to a coproduct is viewed as an alternative between a normal/regular outcome on one side and an exceptional/irregular outcome on the other? Though I can't think of many right now, I'm guessing there must be computations (etc) where coproducts have an asymmetric normal vs irregular interpretation.