KotlinJs and ClojureJs too. You always end up having to write wrappers or dealing with problems that would just work if you just used normal js/ts.
3,683 karma · joined December 13, 2018
If your argument is that optional syntax is bad, sure, we can do that, but it has nothing to do with GC performance.
sealed Interface A {
class B: A
class C: A
companion object {
operator fun invoke(s: String) = when (s) {
"B" -> B()
"C" -> C()
}
}
}
val a = A("B")