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

Support the assignment operators #5

Closed
cuviper opened this issue Dec 19, 2017 · 0 comments · Fixed by #12
Closed

Support the assignment operators #5

cuviper opened this issue Dec 19, 2017 · 0 comments · Fixed by #12

Comments

@cuviper
Copy link
Member

cuviper commented Dec 19, 2017

Would be nice to support AddAssign etc.

cc rust-num/num#173

bors bot added a commit that referenced this issue Jan 26, 2018
12: Implement OpAssign for Ratio r=cuviper a=c410-f3r

Copied shamelessly from [#274](rust-num/num#274) but fixes #5.

There is only one problem to solve before anything. Since the implementation doesn't use the `reduce` function, it is possible to exist multiple types of zeros (`0/4`, `0/21`, `0/66`) instead of the default `0/1`, which implies in test errors like `test(_1_2, _NEG1_2, _0);`, therefore, should I rewrite the test suite to be more "zero"  friendly?
@bors bors bot closed this as completed in #12 Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant