RFC: Add a zero constant to quantities based on primitive types.#250
Conversation
iliekturtles
left a comment
There was a problem hiding this comment.
Thanks so much for the PR! I didn't intend to do a full review yesterday morning and completely forgot to thank you.
iliekturtles
left a comment
There was a problem hiding this comment.
Couple of minor things and I think we're good to merge.
Thoughts about the proposed new_in_base_units. Just push that into the const fn issue or create a new issue?
I think a new issue is the better approach because our goal should probably be to have |
|
Thanks so much for this PR. I'll create a new issue to continue efforts for |
The public helper trait is a bit cumbersome but it appears to be the most straight-forward way to construct a zero value in const context.
An alternative that avoid the intermediate trait this would be to implement something like
for the same set of primitive types.
Fixes #26