Rust / static analysis
let mass = (10.0)
.scalar::<Kilogram>();
let force = Vec2::<f64, Force>
::new::<Newton>([1.0, 2.0]);
let acc = force.scale(mass.inv());
mass + forceRejected: incompatible dimensionsSLUT
Vectors and matrices that carry physical dimensions. Incompatible units become compile errors rather than silent arithmetic bugs.
Experimental · nightly Rust
crates.io ↗