2 ms·
> Java to Kotlin Don't. I tried it, liked the language itself, but went back to Java. Kotlin's syntax is nice, but it predates Java 8, so that syntax plays po
by dehrmann 4y ago
> Java to Kotlin
Don't. I tried it, liked the language itself, but went back to Java.
Kotlin's syntax is nice, but it predates Java 8, so that syntax plays poorly with the stream API and lambdas. Iterop works as-promised, but again, Kotlin syntax doesn't work well with libraries that are Java-first (in my case, this was Hadoop). Finally, mainline Java keeps cherry-picking the best new language features while learning from their mistakes.
- za3faran 4y agoDon't forget pattern matching in Java is more fully fledged compared to Kotlin. Java is also getting string templates, and project Loom (virtual threads) make the entire suspend/await approach unnecessary.