Open discussion: Upcoming rewrite of Quantity values in Arturo #1144
RickBarretto
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This Thread is originates from Discord being written by @drkameleon.
I made just some adaptations to make it easier to read here without change the content.
The current situation:
:
) and a unit, e.g.3:m
or2:m2
(2 square meters):
... since it normally refers to a value type and not a quantity type/unit3 kg*m/s2
(at least conceptually) will be totally feasible and the present syntax would over-complicate thingsin
, likein 'm 3:yd
(returns2.7432:m
), but this - using literals as units - wouldn't work with more complicated syntax patterns (see: above^)So, what I'm thinking:
a
) for this new type: e.g.myUnit: `m
-> (this will be a unit type) and3`m
(this is a quantity).The whole change I'm proposing at a glance:
Before
After
I hope I'm not confusing you too much... 🙂
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions