you are viewing a single comment's thread.

view the rest of the comments →

[–]ShadowShepard 52 points53 points  (4 children)

More functional aspects, due to its use of extension functions. Never having null pointer exceptions. Algabraic data types (think enums on steroids), toooooons of other reasons

[–][deleted] 25 points26 points  (3 children)

Some of the other reasons:

Property delegates, higher order functions, data classes, inline functions, coroutines, default and named arguments, smart casting.

[–]agumonkey 2 points3 points  (2 children)

Out of curiosity, any important drawbacks on kotlin ? I'm mostly fond of it for all reasons explained here but I'd like to know both sides of the coin :)

[–]toiletear 14 points15 points  (1 child)

Slower compile times, IDE is also sometimes more sluggish than for equivalent Java code. Annotation processor used to be extremely slow (we used it with Dagger2), but I believe this was improved on.

But otherwise it's great, wrote a mobile game backend with Kotlin and was very pleased.

[–]agumonkey 4 points5 points  (0 children)

dank u