13 ms·
For languages with types, you can (and absolutely should) use types for your units (rather than raw double/float/int) and encode your conversions into your type
by eschneider 3y ago
For languages with types, you can (and absolutely should) use types for your units (rather than raw double/float/int) and encode your conversions into your types. You can thank me later.
- Smaug123 3y agoSpecifically in languages with types and zero-cost abstractions. If it's not zero cost, then… there's a cost, which must be weighed.