▲ 155 ▼ Introducing Numbat: A programming language with physical units as types (numbat.dev) submitted 2 years ago by bugsmith@programming.dev [M] to c/programming@programming.dev 23 comments fedilink hide all child comments
[–] Starfighter@discuss.tchncs.de 3 points 2 years ago* (last edited 2 years ago) I can't talk about the other libraries but the uom crate does the same thing. The dimensions are encoded as a vector of generics, allowing you to get the correct unit even when dividing a distance by time for example. It's quite the clever use of Rusts type system. permalink fedilink source parent