upvote
In the sense that all sorts of operations are in practice divergent for some values of the domain, yeah. But in languages with explicit uninhabited types, the normal rules of algebra apply to those. For example, in Rust which finally got its canonical "never" type stabilized, `(i32, !)` is uninhabited and `Result<i32, !>` is always `Ok(_)` and the compiler knows it.
reply
You’re only right for lazy pairs, I think.

In a strict language (or with a strict pair in a lazy language), you normally won’t be able to (integer) divide by zero while computing a value, then go on to ignore that, pack that erroneous value into a pair, and extract the other, valid value from it and go on with your life.

Similarly, if your program has hung while computing one half of a pair then (except in lazy languages) it will have hung while computing the pair as a whole as well.

(Haskell’s type algebra is indeed somewhat subtler.)

reply