-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of `integer_quotient(a, b)`, we now always write `a / unblock_int_div(b)`. This gives us everything we used to have with `integer_quotient`, but with two big advantages: 1. The form for the units code becomes more similar to the non-units code that it replaces (i.e., we're using the `/` symbol). 2. We can now support _templated code_ that works for both integral and non-integral types: `a / unblock_int_div(b)` works equally well for, say, `b` with floating point rep. There's no longer any use case for `integer_quotient`. We therefore immediately deprecate it. We will keep it deprecated for the entirety of the 0.4.0 cycle, and remove it for 0.5.0. Fixes #253.
- Loading branch information
Showing
3 changed files
with
76 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters