Skip to content
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

Revert rename of Div to Quot #6147

Merged
merged 1 commit into from
May 1, 2013
Merged

Conversation

brendanzab
Copy link
Member

After much discussion on IRC and #4819, we have decided to revert to the old naming of the / operator. This does not change its behavior. In making this change, we also have had to rename some of the methods in the Integer trait. Here is a list of the methods that have changed:

  • Quot::quot -> Div::div
  • Rem::rem - stays the same
  • Integer::quot_rem -> Integer::div_rem
  • Integer::div -> Integer::div_floor
  • Integer::modulo -> Integer::mod_floor
  • Integer::div_mod -> Integer::div_mod_floor

bors added a commit that referenced this pull request May 1, 2013
After much discussion on IRC and #4819, we have decided to revert to the old naming of the `/` operator. This does not change its behavior. In making this change, we also have had to rename some of the methods in the `Integer` trait. Here is a list of the methods that have changed:

- `Quot::quot` -> `Div::div`
- `Rem::rem` - stays the same
- `Integer::quot_rem` -> `Integer::div_rem`
- `Integer::div` -> `Integer::div_floor`
- `Integer::modulo` -> `Integer::mod_floor`
- `Integer::div_mod` -> `Integer::div_mod_floor`
@bors bors closed this May 1, 2013
@bors bors merged commit ee26c7c into rust-lang:incoming May 1, 2013
@brendanzab brendanzab deleted the numeric-traits branch May 1, 2013 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants