-
Notifications
You must be signed in to change notification settings - Fork 87
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
Scalar concept should be renamed #114
Comments
I agree! As I mentioned in one of our previous discussions let's find a good name for it first :-) |
First figure out the semantic Unless you change your mind on that one ... Good Luck |
Please note that it is being used both as a quantity representation type: and as a value (not a quantity) in operators, i.e.: |
We could name it as |
Maybe name it |
Theses two uses can be different concepts as shown here |
One vote for |
Consider #29 (comment) and its two following comments. Here's my current view:
and later mentions (#114 (comment))
If Does it make sense to use
Perhaps it's possible to come up with ones that do make sense. |
I decided to require * and / because we do not have to multiply or divide 2 quantities explicitly to use those operations. It is enough to: length<metre> q(1q_km); I do not think there is a sense of having quantities without unit conversions? This is why I assumed that even though + and - are optional, * and / are inherent for quantities and should always be valid. |
I agree. The above is hypothetical, and the fact is that such relaxation hasn't been formally requested by an user for their use case. Now then, this issue is about naming, but I mixed other concerns. |
My preference right now is the adjective |
I like BTW, why no one refers to the official ISO terms provided in our own documentation: https://mpusz.github.io/units/glossary.html#term-quantity. 😝 |
However, Maybe we have to go with something like |
After a second thought, I am leaning towards |
I do agree with @kwikius opinion that it should me |
No, it's a quantity. |
NOTE 5 is about I referred more to the |
Oh, but a |
Thanks @JohelEGP! I am doing this change right now. |
It's just that I first came up to the BIMP when working on my first |
Sure, no worries :-) Thanks again! |
The 'units::Scalar' concept definition has nothing to do with any external definition of scalar and is very misleading,
https://github.com/mpusz/units/blob/master/src/include/units/quantity.h#L63
should be renamed to RegularNotQuantity or something similar especially since Vector is an allowed rep type
https://github.com/mpusz/units/blob/master/example/linear_algebra.cpp#L205
The text was updated successfully, but these errors were encountered: