-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
F# is the inspiration:
This could be user-configurable, however:
"Units of measure are used for compile-time unit checking but are not persisted in the run-time environment. Therefore, they do not affect performance."
"Units of measure are used for static type checking. When floating point values are compiled, the units of measure are eliminated, so the units are lost at run time. Therefore, any attempt to implement functionality that depends on checking the units at run time is not possible. For example, implementing a ToString function to print out the units is not possible."
Perhaps it could be an additional feature to the ones already requested such as method pre- and post- conditions etc.
Reactions are currently unavailable