Jun 21, 2026 Rust newtypes make wrong states unrepresentable at compile time, for free A single-field wrapper struct catches unit-mixing bugs and type confusion without adding a single byte of overhead. type-level-correctnessrustnewtypeszero-cost-abstractions
Jun 17, 2026 A number is not just a number: how to make the compiler catch unit bugs Passing milliseconds where seconds were expected is a bug that passes every test. type-level-correctnessunitstypescriptzero-cost-abstractions