yunruse / Noether

Just another units package
MIT License
9 stars 0 forks source link

`measure @ unit + unit` #29

Closed yunruse closed 1 year ago

yunruse commented 1 year ago

I imagine users would like feet + inch rather than feet & inch. Because @ binds more tightly, this is technically feasible.

yunruse commented 1 year ago

It presents a confusing API so is out of scope.

It is true however that #24 (and indeed any other CLI tool) may find use in this syntax when the unit is explicitly a field for the display unit. Such a compatibility feature should be achieved by transforming the AST: + & bind at a similar level (if we ignore << and >>).