r/java • • 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

218 comments sorted by

View all comments

Show parent comments

2

u/sideEffffECt Mar 07 '22

Was, yes. But over time, it's been developed with the possibility of multiple languages in mind. It's been the case for a long time already.

1

u/agentoutlier Mar 07 '22

Do you have a source for that?

Invoke Dynamic could have come earlier but it only came when Java needed it for lambdas.

Secondly Java not picking reified but type erasures was a happy accident that enabled many other languages to proliferate. This is the opposite of CLR which did not.

So I think it was mostly an accident.

2

u/sideEffffECt Mar 07 '22

I hope these two Wikipedia links prove my point, even though someone more knowledgeable could come up with even more examples:

Also, invokedynamic has been in JVM since the version 7 (not 8, which is where lambdas landed).