4 ms·
The delta between Java and Kotlin is definitely decreasing. What Kotliners used to say about Java back then: - no data classes. Now there's records in Java. C
by BigRabbit 5y ago
The delta between Java and Kotlin is definitely decreasing.
What Kotliners used to say about Java back then:
- no data classes. Now there's records in Java. Check.
- no lightweight threads. Boom, project Loom came in.
- no support for FP. Now there are lambdas and :: operator in Java. Also, Stream API.
- no type inference. Then came 'var'.
And some minor things that are in Java now as well: pattern matching; sealed classes as a way to get ADTs in the foreseeable future; kind of immutable collections; etc.
Yeah, you can argue that these features are not-so-native and painful to use in Java comparing to other languages. And, as one who programs in Scala, I 100% agree with you here. But you can't argue that people used to switch to Kotlin and Scala without hesitation because it was worth it summing up all the switching pros and cons. Nowadays, this is not the case anymore. You don't have to risk and adopt a new language technology stack.
Delta is objectively decreasing. For sure.