|
|
|
|
|
by jorgemf
3322 days ago
|
|
> Kotlin is a smart subset of Scala Yes, it is only the subset you need, nothing else. That is why is here to stay and Scala not. Making the things more complex doesn't mean making them better. Do one thing, and do it right. Don't do a lot of things half good. |
|
Actually Kotlin inherited a few bad ideas from Scala as well - which Scala already dropped like procedure syntax.
And some features like null handling or coroutines in Kotlin are implemented as language features - special cases in the compiler, because the core of the language lacks abstraction mechanisms. This is making the language more complex than Scala.
Scala: minimal and powerful language core, the rest is in libraries.
Dotty: make this core even smaller
Kotlin: take a powerful language like Scala, remove almost all of the unnique abstraction features, leave only "better Java syntax" and then reimplement missing features by special cases directly in the language instead of libraries. Feels like VB of XXI century.