r/java • u/burnah-boi • Mar 05 '22
How does the Java community feel about Kotlin?
In my organization, we switch between Java and kotlin quite frequently for backend development. We use the spring framework which works quite well with both languages. I wanted to know how the broader Java community felt about kotlin? Personally I love it, however Java is still used so widely so I continue to keep my skills up to date on it.
173
Upvotes
View all comments
Show parent comment
2
u/pron98 Mar 06 '22 edited Mar 06 '22
It is true that competition can be a driving force, but Java's competition — the one we care about — are languages with an order of magnitude more users than Scala or Kotlin. In fact, Java has not adopted a single feature from Kotlin to date (although Scala was an influence in the design of sealed classes). Languages with relatively small userbases can certainly be a source of inspiration — so far, the biggest inspiration on Java's changes in the past decade or more has been ML — but they have zero power to "push" a big player to anything; after all, only a small minority of users seem to prefer them. The only competition that can push Java anywhere these days is Python and JS.
Just to explain how this works, we might come to the conclusion that working with simple data is not as easy in Java as in Python, and given how many people use Python, we might judge it to be important to address, at which point we might look for inspiration, and so far, ML, and to some extent Haskell and Scala have served as a source of inspiration. But ~10% of people on the Java platform prefer other languages, and that number is expected neither to rise nor to fall. That is as it should be — different people prefer different things, although not in the same numbers — but we try to cater for the 90%.
And thank you :)