Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealing with units #9

Open
c3d opened this issue Jul 15, 2015 · 0 comments
Open

Dealing with units #9

c3d opened this issue Jul 15, 2015 · 0 comments

Comments

@c3d
Copy link
Owner

c3d commented Jul 15, 2015

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…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant