You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Another problem is that there is a difference between implementing both A and B and implementing Union{A,B}, even for a unary operation. So this idea doesn't really work!
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:
The text was updated successfully, but these errors were encountered: