-
Notifications
You must be signed in to change notification settings - Fork 89
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
Bikeshedding reference
and Reference
#486
Comments
A related question might be "do we want to decompose
NOTE: I do not think it is possible to have two "versions" of |
Here are some rough ideas from me:
I am not a native speaker so I hope that others will have better ideas 😉 |
Also consider that I have a suggestion, which unfortunately uses C++ terms. The ISO/IEC 80000 series define quantities, and their coherent units.
|
That's right. |
Here's some more context.
There is a difference between these last two. |
No, it does not and should not. Systems of Quantities should not imply any units and I really want to keep the distinction between definitions of systems of quantities (current See: Quantity type is not about the unit but about a physical "phenomenon" and this is what current quantity_spec describes. Then various systems of units can specify a unit for that "phenomenon" (SI, CGS, natural units, etc). |
Right. |
Yes, and that works only for
|
I would be OK with renaming
I do not think "instance" is a good word here. In C++ instance means an object/variable of a type.
Yeah, I could see that. However, I am guessing that no one here wants to type |
Oh, I'm not suggesting renaming that. |
For a longer time, we knew that a
reference
is a bad name for the entity we have in the code that encapsulatesQuantitySpec
andUnit
. According to ISO and SI terminology,reference
is "a measurement unit, a measurement procedure, or a reference material".The name is also unfortunate because we already have
std::reference
in the C++ Standard Library which would be an issue in case the library gets standardized.Here are simple examples of the current design:
A current
Reference
concept is satisfied by bothmy_unit
andmy_rep
as both of them allow us to create a quantity when we multiply a number by them:Operations on references:
pow
,sqrt
, andcbrt
on themReference
is also the first template parameter of aquantity
class template:mp-units/src/core/include/mp-units/quantity.h
Lines 85 to 86 in 24803a9
It is probably time to look for a better name for this wrapper.
My understanding is that this thing describes all meta-information about the quantity besides its number.
The text was updated successfully, but these errors were encountered: