In what sense is Kotlin a proprietary language? It's Apache 2.0 licensed AFAIK. And there are many projects that use Kotlin which are not legacy projects.
But to answer your question that is loaded to the brim with false assumptions/claims directly: https://kotlinlang.org/docs/comparison-to-java.html
Yes. Kotlin is free, has been free and will remain free. It is developed under the Apache 2.0 license, and the source code is available on GitHub.
- Java handling of mutability of variables and collections
- Java is still more verbose and with less powerful utilities
- Much better for functional programming
-Some things were done right with all the learnt lessons. E.j. equals Vs ==
I respect preferring free languages. But I love Kotlin
From https://kotlinlang.org/docs/faq.html#is-kotlin-free:
Yes. Kotlin is free, has been free and will remain free. It is developed under the Apache 2.0 license, and the source code is available on GitHub.
- First class, fully functional closures. - Non-abstract classes and methods are final by default. - Named parameters. - Easy to write iterators via sequence { ... } - First class support for unsigned types.
Having to use Java again when Kotlin exist
Recent Java features like records, pattern matching, sum types via sealed interfaces have certainly made it a much more ergonomic and modern language.
But having to wrap everything in "class" feels ludicrous to me.
The other ones are lack of explicit null types (meant to be addressed by JEP "Null-Restricted and Nullable Types") and inability to write anonymous types for functions.
For example, something like:
fun withCallback(
handler: (A, B, C) -> D
)
In Java, you have "Function3<A, B, C>" etc