Open kris-brown opened 1 month ago
The problem is worse for if Hom
were implemented by a union type, since compose would have four possibilities. Hopefully it is not too much of a hassle to handle all the possible cases (including explicit Union types).
If
Ob
is implemented byUnion{A,B}
for some model, then when declaring the model one is forced to write something likeA multiple dispatch style approach would be preferred: