what was the reason that kotlin introduced an own ...
# random
r
what was the reason that kotlin introduced an own Comparable interface (I only realised today that it's not the java interface when I tried to consume an API from another JVM language)
or to put it differently, why is it not an expected interface in common and a typealias in jvm?
r
in what regard, java has defined it as interface and kotlin has also defined it as interface?
hm... maybe it's only intellij showing me kotlin.Comparable because I am not able to instantiate it
h
ohh, you meant the actual kotlin.Comparable as in the actual interface. my bad
r
ok, I had a look at the bytecode kotlin.Comparable is not in there, it was only intellij showing me this
g
@robstoll Take a look on official Java interop doc, it explains how it works, it’s the same case as for List interface in Java and Kotlin or for kotlin and java String: https://kotlinlang.org/docs/reference/java-interop.html#mapped-types