-
Notifications
You must be signed in to change notification settings - Fork 13k
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: merge cmp::Eq and cmp::Equiv #7088
Comments
visting for triage, email from 2013-08-26. So, I assume that
Is that right? I'm not sure about the type inference implications. (@nikomatsakis, any comments?) (I'm also not sure that the motivation of removing the |
I did spend a little while trying to see how hard it would be to hack this in. Its not something that can be done piecemeal, I don't think. At least my brief attempts to switch the lang_item over to |
I think I prefer to keep |
so maybe we should close this? Or ask for input from the rest of the core team? |
Nominating. |
We're planning to keep Equiv (I thought briefly that we might drop Equiv, but it is important for servo use cases such as case-insensitive lookup in a table). We don't think the change suggested here (see e.g. my comment above) has sufficient motivation. Use Closing as wont-fix |
add type in help message of from_over_into fixes rust-lang#7088 changelog: add type in help message of from_over_into
Using @nikomatsakis's double dispatch overloading trick, we could merge
cmp::Eq
andcmp::Equiv
. This would allow us to remove all the_equiv
methods fromHashMap
.You can find an implementation prototype here.
I mentioned this in IRC, and @pcwalton and @huonw mentioned that this could complicate type inference though, but I couldn't figure out a good case where merging the two would cause a problem.
The text was updated successfully, but these errors were encountered: