Rick C. Hodgin
Programmer
Ellie Windler said:Original post: thread1797-1793888
Making a decision for choosing the best programming language can be a tricky job. which one is better: Kotlin or java
I do not see the advantage of Kotlin over Java save in the area of licensing. I actually think Kotlin is a less structured, less well thought out language.
[UPDATE: I should clarify that statement. Kotlin seems to be concerned about user code authoring. Many of the things Kotlin does can be done using a pre-processor if required. Common / oft-repetitive tasks can be automated with the use of a few tools. While Kotlin brings that into the compiler, it's a philosophy I do disagree with strongly. I would rather see the ability to specify custom addons which can take source files and preprocess them, allowing the generated output from that preprocessing to be fed into the compiler.
Kotlin features I do like and wish Java had:
1. Ability to pass-in or return functions. I think this feature has been sorely missing from Java.
2. Null safety. C# has this as well. It's something Java is missing.]
I'll never switch to Kotlin unless I have to.
--
Rick C. Hodgin