-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
How must we be able to construct a Quantity
?
- Must
Quantity(value, unit)
returnQ
such thatQ.value
isvalue
, andQ.unit
isunit
? If so, can we type that without enforcing certain signatures or parameter names which may be difficult for existing libraries to adopt? - If not, do we instead want to standardise a
QuantityNamespace
, of which theQuantity
class is a member, but which also has a creation function such asQuantityNamespace.asquantity
? Would all existing libraries be happy with exposing such a namespace? - Or do we instead leave creation to the unit API, via something like
value << unit
?