You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, Length.meter would be equal to Length.meters 1. This would be convenient for setting up rates of change like
Pixels.pixels 96|>Quantity.per Length.inch
instead of
Pixels.pixels 96|>Quantity.per (Length.inches 1)
However, it would be a fair bit of extra noise in the API if it was adopted for all units, and it's not clear how it would work where there's no distinction between singular and plural forms (such as with Length.thou and Power.mechanicalHorsepower). And the current form has the advantage of making it obvious that you can pass any quantity value as the denominator to Quantity.per.
The text was updated successfully, but these errors were encountered:
For example,
Length.meter
would be equal toLength.meters 1
. This would be convenient for setting up rates of change likeinstead of
However, it would be a fair bit of extra noise in the API if it was adopted for all units, and it's not clear how it would work where there's no distinction between singular and plural forms (such as with
Length.thou
andPower.mechanicalHorsepower
). And the current form has the advantage of making it obvious that you can pass any quantity value as the denominator toQuantity.per
.The text was updated successfully, but these errors were encountered: