-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Z/nZ elements behave weirdly with integers #1512
Comments
I don't think that the mismatch between array and set comparison is a big problem. Julia itself has this "problem":
Removing the EDIT: We could implement |
Personally I always disliked that we allow things like But truth is, people use this, people want this, people are confused if they can't do it .... And in any case, we can't just drop these comparisons, as that would break too much code, and it is difficult to find that code. If we were to remove these (and I doubt we could find a consensus on this at this point), then we'd have to install a method that made things like |
I find it very confusing that the behavior differs between vectors and sets.
This is probably due to their hashes being different.
This behavior contradicts the julia requirement for
hash
.But as
5 == ZZn(5) == 22
, by transitivity of hash equality,hash(5) == hash(22)
would have to hold, what we do not want and cannot change.As the only wait out of this, I would propose to remove
==(::ZZElem, ::zModRingElem)
and similar.The text was updated successfully, but these errors were encountered: