4 ms·
Without having tried Kotlin myself, is it in any way compable to Groovy? Are there any benefits or tradeoffs, based on what you might know about Groovy?
by parasubcutaneor 10y ago
Without having tried Kotlin myself, is it in any way compable to Groovy?
Are there any benefits or tradeoffs, based on what you might know about Groovy?
- mike_hearn 10y agoKotlin's design was heavily influenced by Groovy. You can see it in the builder DSLs, the syntax, the fact that Gradle is adding support for Kotlin alongside Gradle, and comments by the Kotlin designers. The big difference of course is that Gradle is dynamically typed by default.
- vorg 10y ago> Gradle is adding support for Kotlin alongside Gradle, and comments by the Kotlin designers. The big difference of course is that Gradle is dynamically typed by default. You've fallen for the trap of mistaking Gradle to be Apache Groovy, perhaps because those 10-line build scripts for Gradle are the only encounter most programmers have with Groovy. Your comment should read "Gradle is adding support for Kotlin alongside Groovy, and comments by the Kotlin designers. The big difference of course is that Groovy is dynamically typed by default."
- mike_hearn 10y agoYou're right - I know the difference but apparently something got corrupted between brain and keyboard!
- relics443 10y agoIt's similar to Groovy, which I've worked with non extensively, but I think it adds a lot more. I've always found development in Groovy to be closer to Ruby or Python, while Kotlin feels more like Java (just better :-)