elfe
elfe copied to clipboard
Dealing with units
Currently, some examples contain code like this:
every 1s,
writeln "Hello world"
The notation 1s is the number 1 with the postfix s. I'm concerned that reserving short postfix like this may cause trouble. Furthermore, this means all units would require reserved postfix names.
An alternative would be to have a special notation for units, where instead of using the general postfix notation, we'd have a postfix notation that only works after numbers. It could even have special symbolic arithmetic, so that you could write 1km/h having only defined units m and h, and it would correctly convert to unit m/s.
This is really low priority, I'm mostly seeking feedback and input here…