3 ms·
in my opinion, modern java's language ergonimics are good but kotlin is still far better. i didn't write much plain java in long time since having to adopt kotl
by stefs 3y ago
in my opinion, modern java's language ergonimics are good but kotlin is still far better. i didn't write much plain java in long time since having to adopt kotlin.
i love the integrated null safety / handling at a syntax level with the ? operator; optional felt clunky in comparison. lambdas plus everthing's an expression allows for concise, readable code. and i love the scope functions. i agree that extension methods may have turned out to be a footgun, but i feel like it hasn't been a huge issue in the field. it's doubtful java is able to integrate most of those ideas in a way that feels as natural.
i don't understand why the author chose to ignore android, it's an elephant in this room. as long as android doesn't drop kotlin for something else as the lingua franca of the platform it's got certain guarantees.
- willtemperley 3y agoAbsolutely, while Kotlin is a first class citizen in Android, it isn't going away. Neither is Scala because there are plenty of developers who like bleeding-edge and experimental language features. Personally I don't use it anymore as really don't need things like implicit parameters, but props to each and every early adopter of language features that help Java evolve. Thanks to Kotlin and Scala, Java can now be very pleasant to code in.