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

Calculations with properties don't seem to compose #6

Closed
whitequark opened this issue Oct 15, 2016 · 3 comments
Closed

Calculations with properties don't seem to compose #6

whitequark opened this issue Oct 15, 2016 · 3 comments

Comments

@whitequark
Copy link
Contributor

whitequark commented Oct 15, 2016

Ex.:
2651

2650

@tiffany352
Copy link
Owner

tiffany352 commented Oct 16, 2016

It's an issue with the precedence of the of operator. The way it works now, it's reading as (density) of (milk * 10L). I think the only way to fix this is to finally give in and make parsing dependent on the data file, which would allow me to stop parsing of at the first substance. For now, I've found myself writing expressions backwards instead, e.g. 10L * density of milk. Idiomatically, this expression should probably be written mass of 10L milk, which does work.

Edit: I should have mentioned, you can also write (density of milk) * 10L.

@whitequark
Copy link
Contributor Author

Aside from all above, I think the error message should be fixed also.

@tiffany352
Copy link
Owner

Yeah, it should indicate that the property exists but is not useful or potentially misleading in context.

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

2 participants