-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Int and Integer traits should imply "Ord" #18776
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Yup :) |
@haberman I have two questions: May I ask what is the Did you mean |
@nodakai The |
bors
added a commit
that referenced
this issue
Nov 10, 2014
Previously Int inherited from PartialOrd (via Primitive) but not Ord. But integers have a total order, so inheriting from Ord is appropriate. Fixes #18776.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Right now the Int and Integer traits imply PartialOrd but not Ord.
Is there a reason for this? It seems like integers do have a total order, not just partial. I asked on IRC and people seemed to think Int should imply Ord.
If this is correct I can send a pull request?
The text was updated successfully, but these errors were encountered: