-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
RFC: Add a partial_cmp
method to PartialOrd
#100
Conversation
I find it kinda nice that it would bring the The default implementations could always be overridden if performance is necessary, so I wouldn't see the concern of the default implementation providing a possibly slow default being too worrisome. |
I'm using |
Why not just |
@glaebhoerl that is currently 2 bytes. (But implementing an optimisation like rust-lang/rust#14540 would fix that small issue.) |
@glaebhoerl oh, that's a good idea. I'm not super concerned about a 1 byte difference in representation size. I can't imagine people storing millions of partial ordering results or anything. I'd prefer to keep an enum around for |
I have the same feeling. Something like |
Updated in line with @glaebhoerl's comments. |
Here's an example of use of |
We decided to accept this RFC, discussed in today's meeting |
No description provided.