Closed thegedge closed 7 years ago
The more I'm thinking about this, the more I'm realizing that addition and subtraction against anything except a Measurable object part of the same system should raise a type error.
You should never be able to add or subtract without a unit.
Yeah, agreed. I'll push out a PR to change that.
https://github.com/Shopify/measured/issues/46 for arithmetic changes
Closes https://github.com/Shopify/measured/issues/31
positive?
,abs
)Measurable
s to be used in any context whereNumeric
objects are expected.@kmcphillips @jonathankwok