Skip to content

RFC: cmp and ops reform - #439

Merged
alexcrichton merged 4 commits into
rust-lang:masterfrom
aturon:cmp-ops-reform
Nov 20, 2014
Merged

RFC: cmp and ops reform#439
alexcrichton merged 4 commits into
rust-lang:masterfrom
aturon:cmp-ops-reform

Conversation

@aturon

@aturon aturon commented Nov 4, 2014

Copy link
Copy Markdown
Contributor

This RFC proposes a number of design improvements to the cmp and
ops modules in preparation for 1.0. The impetus for these
improvements, besides the need for stabilization, is that we've added
several important language features (like multidispatch) that greatly
impact the design. Highlights:

  • Make basic unary and binary operators work by value and use associated types.
  • Generalize comparison operators to work across different types; drop Equiv.
  • Refactor slice notation in favor of range notation so that special
    traits are no longer needed.
  • Add IndexSet to better support maps.
  • Clarify ownership semantics throughout.

Rendered

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-operator Operators related proposals.

Projects

None yet

Development

Successfully merging this pull request may close these issues.