-
Notifications
You must be signed in to change notification settings - Fork 176
Fix unit error in SimpleAir #4096
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
Conversation
thorade
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
|
@HansOlsson @casella Can one of you confirm that this is the direction we are going and approve the PR? |
|
@qlambert-pro Simply add the suggested guys to reviewers. (They would remove themself when not relevant.) |
|
@tobolar I don't think I have the rights to do that, unfortunately. |
|
In the original code, a kind of magic number was used! ;-) |
HansOlsson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Well, we had the constant on the line above - so it wasn't that magic. |
The language design group has been trying to standardize the handling of units, so that literal values do not contribute to the unit of an expression in a way that would prevent further unit checking. We expect fixes similar to the one present in this PR to be necessary in the future.