Re:What I miss in Java, the perspective of a Kotlin developer
by arunix on Tuesday June 14, 2022 @06:32AM
(#31736953)
Groovy has an optional compile time checking feature on a per-class basis via an annotation (this has been around for a long time)
https://docs.groovy-lang.org/latest/html/api/groovy/transfor...
https://livebook.manning.com/book/groovy-in-action-second-ed...
Re:What I miss in Java, the perspective of a Kotlin developer
by kaba0 on Tuesday June 14, 2022 @06:54AM
(#31737101)
> Scala has a lot of interesting features but also a lot of complexity
I really don’t get it - I am fairly certain that feature wise Kotlin is actually a bigger, more complex language with many exceptions/edge cases. Scala is a really elegant language in that many of its features are solved by a singular base, for example implicits. And frankly, other than that it is a very easy language - programs written in it can be complex due to its high expressivity.
Re:What I miss in Java, the perspective of a Kotlin developer
by aurea on Tuesday June 14, 2022 @05:36AM
(#31736568)
Do you have any good articles on what would make Kotlin better than Scala? I work only in Scala and have never touched Kotlin.
Re:What I miss in Java, the perspective of a Kotlin developer
by jillesvangurp on Tuesday June 14, 2022 @06:29AM
(#31736917)
Not really. I likewise don't use a lot of Scala. Probably better to think in terms of how the languages are different rather than better.
Here's a good overview of differences:
Groovy's lack of compile time safety is like throwing out the baby with the bathwater. It's just not worth it for me. Kotlin gets you most of the language features but without doing that.