4 ms·
So choosing Kotlin over Java boils down to some syntactical differences? Nah. The syntax differences between Kotlin and Java are not even that huge. It's not li
by ragnese 7y ago
So choosing Kotlin over Java boils down to some syntactical differences? Nah. The syntax differences between Kotlin and Java are not even that huge. It's not like choosing between Elixir and Erlang, or between JavaScript and ReasonML.
The main differences between Kotlin and Java are:
* Kotlin forces null checks.
* Kotlin arrays are invariant.
* Kotlin does not have checked exceptions.
* Kotlin has first class functions.
* Kotlin sealed classes don't really have an analog in Java, AFAIK.
I don't find data classes to be a big deal. The best thing about them is you get `copy()` for free.