by rb808 · 9y ago · 0 comments
Scala was much better than Java but now the gap has closed and while its still nice to work with, I feel most applications would be better to stick to mainstream Java.
Kotlin is interesting but after Scala experience I'm reluctant to invest all over again. Is it worth it?
To answer your specific question, however, if you're doing Android development it's worth it :) otherwise, it's up to you/your specific situation.
[1]: https://kotlinlang.org/docs/reference/type-safe-builders.htm...
If you want to, Kotlin can be practically Java without the over-verbosity and some nice extra features. In time you'll be writing less Java-Kotlin and more Kotlin-Kotlin, if you get what I mean. To me the syntax and structure is so resembling to Java that I haven't really had any confusions at all, most of my gotta-read-the-docs moments involve the concepts that you can use that aren't present in Java (along with the `when` version of `switch` which I've grown to love).