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
Schema must have well-defined equality and hashCode methods.
Note that due to the presence of Schema#transform, which stores functions in the ADT, we will have to use reference equality on functions to check for equality and to compute hash code. Reference equality implies equality, but is not necessary for equality, which means that two schemas could in fact be equal, but equals will return false. That's a known and acceptable limitation of this approach.
We should have a test suite that demonstrates equal schemas compare as equal and hash the same.
The text was updated successfully, but these errors were encountered:
Schema must have well-defined equality and hashCode methods.
Note that due to the presence of
Schema#transform
, which stores functions in the ADT, we will have to use reference equality on functions to check for equality and to compute hash code. Reference equality implies equality, but is not necessary for equality, which means that two schemas could in fact be equal, butequals
will returnfalse
. That's a known and acceptable limitation of this approach.We should have a test suite that demonstrates equal schemas compare as equal and hash the same.
The text was updated successfully, but these errors were encountered: