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
Additional units for unit checker; fixes #4116 #4308
Conversation
I only implemented |
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.
This looks great. Thanks very much for the contribution. I only fixed one typo.
Please go ahead and add other units, and let me know when I should re-review.
@rkraneis Please let us know if there is anything we can do to help. I'm not trying to nag -- it's just that we are eager for this improvement. Thanks! |
@mernst I'm a bit tight on time at the moment, but will be able to tackle the topic again over Easter. |
OK, thanks for letting me know. Good luck with everything. |
Hi @mernst, two things actually do give me a little bit of a hard time (both around testing):
(that is, there is no “javac output”, so figuring out what I missed is a bit tiresome) And, as stated previously, I'm doing actual work on |
Another problem around automatic reformatting: // :: error: (assignment.type.incompatible)
@N(Prefix.giga) int notN = N; always gets reformatted to // :: error: (assignment.type.incompatible)
@N(Prefix.giga)
int notN = N; I can rewrite this to @N(Prefix.giga)
// :: error: (assignment.type.incompatible)
int notN = N; to make the tests still pass, but it's definitely not optimal. This does not happen for |
And one more observation: Unfortunately, the unit C (instead of the unrepresentable °C) is already used in the units checker for the derived SI unit degrees Centigrade, so something else needs to be thought of for the electric charge Coulomb, if it should be added. |
@rkraneis I apologize for my delay in responding; I didn't notice the GitHub notifications. Thanks again for these changes and for the comments about what was difficult for you. Regarding tests:
Regarding formatting:
I don't have a concrete naming suggestion about Colomb vs Centigrade. I'm happy to use whatever you suggest. |
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.
Thanks very much for these additional units! I appreciate your contribution.
No description provided.