Re:Kotlin 1.0.3 Is Here
by favadi on Friday July 01, 2016 @11:58AM
(#12017205)
I was a Java developer like 5 years ago, and already forgot everything about it. Do I have to relearn Java in order to learn Kotlin?
[ Parent
| on HN ]
As Kotlin is more or less Java with some sugar thrown on top, yes. Even if you "learn Kotlin" on its own, you'll essentially have re-learned Java.
Thanks, so it is not the kind of language I can learn the basic for fun in a weekend.
Depends on what you mean by "learning a lanuage".
You can probably learn the syntax, and to build and run your application in a couple of days. Learning the "ecosystem" of Java I think is another matter.
Installing the Eclipse-plugin which includes the Kotlin compiler, creating and running a "hello World" takes only a few minutes (I just did that).
It depends, what is your background?
Java is a run-the-mill object oriented language. If you've used any OO language with dynamic dispatch, you're immediately set 90% of the way to fluency.
The tricky part is the generic part of the type system, the part with the `? extends` and `? super` annotations.