-
Notifications
You must be signed in to change notification settings - Fork 5
Description
This issue is more of a discussion starter, not a final suggestion.
The use cases for a Measure object stretch far beyond the currently stated use cases and goals. Constraining the Measure object/API (we could call it an API, right?) to strictly these use cases greatly limits the potential for a standardized measuring API on the web. It makes sense, given that taking input and handling units and measurements is common in many applications.
I argue that inspiration can be taken from the best current state of the art regarding units and measurements on the web.
Among the libraries I've personally explored, is UnitMath.
The notable features offered by UnitMath and not this proposal are, among others:
- representing units as variables, with which common operations and conversions can be completed seamlessly
- unit splitting
- unit simplification
- custom units and measurement systems
- unit serialization
While not all features offered by this library (or others) should necessarily be included in a standard web API, there is experience in these libraries that could be applied or considered in this proposal to make for a better spec.
I invite @ericman314, the creator of UnitMath, to leave his thoughts here.