Open adamchalmers opened 1 year ago
Why is the .
(period) necessary?
I also believe having too many ways to express the same thing is just confusing.
Reminds me of https://en.cppreference.com/w/cpp/language/user_literal
More prior art:
Not sure where else to put this, but the maintainer of dimensional, the Haskell package, just posted this:
My proposal: these are all valid KCL expressions for the same value.
Distance.Meter(1)
-- fully spelled out, using normal KCL syntax.1.Meter
-- using "unit suffix" notation, which is syntactical sugar (aka shorthand) for the above1.m
-- very commonly-used units have a second, shorter unit suffix.Thanks to @lf94 for suggesting this!