mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
docs: correct type reference for delta quantities in absolute quantities post
This commit is contained in:
@ -259,7 +259,7 @@ The above raises a few questions:
|
|||||||
|
|
||||||
1. Does it mean that `quantity<si::seconds>` or `quantity<isq::time[s]>` should not compile?
|
1. Does it mean that `quantity<si::seconds>` or `quantity<isq::time[s]>` should not compile?
|
||||||
2. Should we require the user to always state `quantity<delta<si::seconds>>` or
|
2. Should we require the user to always state `quantity<delta<si::seconds>>` or
|
||||||
`quantity<delta<si::seconds>>`? This would be consistent with physical equations but more
|
`quantity<delta<isq::time[s]>>`? This would be consistent with physical equations but more
|
||||||
verbose in the source code.
|
verbose in the source code.
|
||||||
3. Should the syntax `40 * s` be disallowed or should it implicitly create`quantity<delta<si::seconds>>`
|
3. Should the syntax `40 * s` be disallowed or should it implicitly create`quantity<delta<si::seconds>>`
|
||||||
instead of `quantity<si::seconds>`?
|
instead of `quantity<si::seconds>`?
|
||||||
|
Reference in New Issue
Block a user