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
Unified namespace for operators: Quantity.sin instead of Angle.sin
More understandable naming for pixel-related functions: Quantity.pixels, Quantity.inPixels instead of Pixels.pixels, Pixels.inPixels
Cons
Breaking change
Huge module documentation page to try to browse through
Could basically be accomplished by module aliasing instead (with a few function renames to avoid conflicts)
Doesn't play quite as nicely with defining custom units/quantity types (would have to 'merge' those with the main Quantity module, which can be confusing)
Required changes
Rename Mass.pounds/Mass.inPounds to poundsMass/inPoundsMass to not conflict with Force.pounds/Force.inPounds
Since Temperature would still be a separate module, could have both Temperature.degreesCelsius (temperature) and Quantity.degreesCelsius (temperature delta).
The text was updated successfully, but these errors were encountered:
Pros
Quantity.sin
instead ofAngle.sin
Quantity.pixels
,Quantity.inPixels
instead ofPixels.pixels
,Pixels.inPixels
Cons
Quantity
module, which can be confusing)Required changes
Mass.pounds
/Mass.inPounds
topoundsMass
/inPoundsMass
to not conflict withForce.pounds
/Force.inPounds
arcminutes
/arcseconds
instead ofminutes
/seconds
Since
Temperature
would still be a separate module, could have bothTemperature.degreesCelsius
(temperature) andQuantity.degreesCelsius
(temperature delta).The text was updated successfully, but these errors were encountered: