So considering Kotlin by JetBrains has been out for a long while and most Java developers know about it by now, is there any reason why you Java developers haven't made the switch?
It supports JVM (obviously), requires a lot less coding, has null safety, has a lot of cool things like lazy (delegated properties), and a lot more features that makes Java look stupid compared to it.
For you Java devs who haven't seen Kotlin code ever, here's an example:
This is a final variable representing a java.sql.Connection object. "Lazy" is called when the variable is read for the first time. Thread safety is automatic. Normally in Java you'd have a variable like this assigned to null, then initialize it afterwards.
I'd love to see why people prefer Java over Kotlin, I love both (and use Java still for some projects) but after over a month of using Kotlin I haven't found a reason to switch back to Java with what Kotlin has to offer at the same runtime speed of Java.
It supports JVM (obviously), requires a lot less coding, has null safety, has a lot of cool things like lazy (delegated properties), and a lot more features that makes Java look stupid compared to it.
For you Java devs who haven't seen Kotlin code ever, here's an example:
This is a final variable representing a java.sql.Connection object. "Lazy" is called when the variable is read for the first time. Thread safety is automatic. Normally in Java you'd have a variable like this assigned to null, then initialize it afterwards.
I'd love to see why people prefer Java over Kotlin, I love both (and use Java still for some projects) but after over a month of using Kotlin I haven't found a reason to switch back to Java with what Kotlin has to offer at the same runtime speed of Java.
