Faster Development
Table of Contents
Benefits
-
Faster Development
- Cleaner Code
- Safe Flexibility
Self-Documenting Units
When using numeric datatypes, all units have to be spelled out in documentation, variables, and function names. Not only is this prone to human error, but it also requires significant boilerplate for what should be simple code.
But, with units-of-measure, variables and functions are all documented by their type.
No more tedious documentation. No more massive variable names.
Better IDE Autocomplete
Additionally, units-of-measure helps your IDE make more helpful autocomplete predictions.
If we were using only doubles, the IDE would just spit out every number in scope.
However, with units-of-measure, the IDE only suggests expressions (both generic and concrete) which can satisfy the rules of dimensional analysis.
‹ Home Install ›› Benefit: Cleaner Code ›