Replies: 2 comments 3 replies
-
Please, clarify the title to include which Quantity reference is suppose to represent the quantities described by ISO/IEC 80000. *: Except where they are repeated in other parts (confirmed by matching descriptions), which might be a vestige of earlier editions. |
Beta Was this translation helpful? Give feedback.
-
I'll preface by confessing once again that my brain is very much stuck in the "dimensions-and-magnitudes" world that Au inhabits, and any finer distinctions are liable to lose me rather quickly. 🙂 For quantities, I've always thought it nice if It's also true that we support If we go beyond dimensions-and-magnitudes, I'm less sure how things should work. It seems as though if we have implicit convertibliity in either direction --- say, one is a length, and the other is some more-specialized length, like a radius? --- then we should continue to support implicit equality and inequality comparison. And that if the quantities are each more-specialized versions of some common type, but neither is implicitly convertible to the other, then this shouldn't compile. As for non-quantity types: there are multiple possible concepts for what |
Beta Was this translation helpful? Give feedback.
-
We all probably agree that various entities in this project should be comparable with an
operator==
. The most obvious case here is the comparison of quantities:However, as all other entities (dimensions, units, quantity specifications, and references) in the library are defined as values, we should probably also allow comparing them. Some are easy and consistent:
However, this is not true for quantity specifications and references that use them:
But:
I think it has sense and is reasonable for people knowing the domain.
However, one could argue that the quantity should compare equal only if all its components compare equal as well.
Should we change the current behavior? Do we have any ideas on how to improve here?
Beta Was this translation helpful? Give feedback.
All reactions