KittyCAD / kcl-experiments

KittyCAD Language
9 stars 0 forks source link

Better shorthand for units #7

Open adamchalmers opened 1 year ago

adamchalmers commented 1 year ago

My proposal: these are all valid KCL expressions for the same value.

Thanks to @lf94 for suggesting this!

lf94 commented 1 year ago

Why is the . (period) necessary?

I also believe having too many ways to express the same thing is just confusing.

alteous commented 1 year ago

Reminds me of https://en.cppreference.com/w/cpp/language/user_literal

jtran commented 4 months ago

More prior art:

jtran commented 1 day ago

Not sure where else to put this, but the maintainer of dimensional, the Haskell package, just posted this:

Scientific computing with confidence using typed dimensions