Are there any plans to make all number types (incl...
# stdlib
m
Are there any plans to make all number types (including unsigned ones) implement a shared interface? It’s odd to that unsigned numbers don’t implement
kotlin.Number
, which unfortunately is an abstract class.
1
e
they should change that to
interface
if possible
z
They don't implement a shared type on the jvm, and since kotlin interfaces map directly to java interfaces, the only way to do this would be using something like typeclasses (https://github.com/Kotlin/KEEP/pull/87)