Units in Go and Rust show philosophical differences

from blog ntietz.com blog - technically a blog, | ↗ original
↗ original
Units are a key part of doing any calculation. A number on its own is just a scalar and doesn't represent anything in particular. If I tell you to go drive 5, you'd naturally ask "5 what?" Software often has to deal with quantities that represent real-world things. How we represent these quantities in different languages is an interesting window...