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

Handle name clash between units and variables #29

Closed
sharkdp opened this issue Mar 11, 2017 · 1 comment
Closed

Handle name clash between units and variables #29

sharkdp opened this issue Mar 11, 2017 · 1 comment
Labels

Comments

@sharkdp
Copy link
Owner

sharkdp commented Mar 11, 2017

How should this be treated?

> km = 3.0
???

Possible solutions:

  • Try to parse the identifier as a (derived) unit. If it succeeds -> disallow this identifier
  • Ignore it -> identifier takes precence -> km=3.0 -> 2km = 6.
@sharkdp
Copy link
Owner Author

sharkdp commented Mar 18, 2017

Also, handle name clashes between mathematical functions and identifiers.

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

No branches or pull requests

1 participant