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
I don’t think we can have a single polymorphic Equals class: its instance for symbols would overlap the other instances for orderings and booleans!
Also since Boolean has only two inhabitants we can have more functional dependencies (lhs out -> rhs and rhs out -> lhs), allowing the compiler to deduce one of the parameters from the other and the result (which isn’t possible for symbols nor orderings when the result is False).
We have
Type.Data.Ordering.Equals
andType.Data.Symbol.Equals
but noType.Data.Boolean.Equals
.Is there any reason for not wanting or needing this class?
I assume it would be implemented like this:
The text was updated successfully, but these errors were encountered: