Allow loading preludes or extending previous unit_system
calls
#43
Labels
ergonomics
Library usage ergonomics
macro-syntax
Changes or improvements to the syntax of the unit_system macro
It would be nice to be able to do something like
in order to extend pre-defined systems of units with a few custom units.
Another option could be to allow calling
unit_system
(or rather a stripped down version of the macro) again in order to add units to the previously generatedQuantity
type, such asHowever this requires persistence across multiple macro calls which is non-trivial (see rust-lang/rust#44034)
The text was updated successfully, but these errors were encountered: