DEV Community

Discussion on: Java or kotlin?

Collapse
 
ashokgelal profile image
Ashok Gelal

I prefer Kotlin (heck, I even wrote a web framework in it: alpas.dev).

Kotlin is more expressive and is more modern. Java is now trying to catch up, which is good for everyone.

At first I wasn't sure about Kotlin having full interoperability with Java. I thought that would make the language more rigid and may not be able to get away from some limitations (like type-erasure generics). But after writing a full web framework, I've realized that it was a brilliant move as it allowys you to use any Java libraries without any issue.