I don’t say that this is never be implemented (union types is better solution than
dynamic
), but for now I think it’s too big feature that cannot be easily supported on jvm
r
robstoll
04/19/2018, 10:23 AM
scala 3.0 will have union types, so I think this is not really an argument 😉
g
gildor
04/19/2018, 10:25 AM
Also, Scala don’t have such level of compatibility with Java as Kotlin
A lot of Scala features just impossible to use from Java
gildor
04/19/2018, 10:27 AM
Check for example Ceylon, also has union types and big problems with compatibility with Java, so, I suppose this is one of the reason why Kotlin won (because Ceylon is actually closest competitor)