https://kotlinlang.org logo
#science
Title
# science
l

louiscad

06/08/2020, 11:45 AM
Hello! The Kotlin stdlib has
Duration
, in experimental API. Did anyone think about continuing the six remaining measures from the SI (International System of units, aka. Système International)? I'd add
Distance
,
Mass
, etc, along with most common derived units, and functions to allow operations.
a

altavir

06/08/2020, 11:55 AM
There was also a long discussion about how to do it properly and now we just need for someone to implement it properly. We probably won't be able to do custom unit algebra, but basic things like type-safe distances and velocities could be done.
3 Views