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
elect
02/07/2020, 1:43 PM
they should change that to
interface
if possible
z
Zach Klippenstein (he/him) [MOD]
02/07/2020, 3:23 PM
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)