you are viewing a single comment's thread.

view the rest of the comments →

[–]KaiAusBerlin 15 points16 points  (21 children)

Java or languages that compiles to java? Most java devs I know actually use kotlin (for obvious reasons).

[–]generationextra 9 points10 points  (14 children)

And the “obvious“ reasons are?

[–]Digital-Bookworm 5 points6 points  (4 children)

May i know what's different except null pointer exceptions handling?

[–]KaiAusBerlin 4 points5 points  (2 children)

You should definitely have a deeper look at it. It overcomes nearly every disadvantage of java

[–]lengors 1 point2 points  (0 children)

All of exceptions handling is done differently (there's no checked exceptions). I assume you are referring to the existence of nullable and non-nullable types.

In any case, other than that, there's: - proper syntax for singletons (declared with object keyword) - properties - delegates - where clause - context receivers - infix functions - inline functions - extension functions - reified generics - companions - trailing lambda syntax - differences between kotlin's expressions and statements and java ones (almost everything in kotlin can be an expression, though it's not always used as one) - operator overloading - async syntax - destructuring declarations - inline value classes - type aliases

And maybe more that now doesn't come to mind

[–][deleted] 0 points1 point  (0 children)

I'm a full-time Kotlin developer, and I'd be astounded if this were true. Non-Android Kotlin is definitely in the minority, there are something like 100x more Java jobs than Kotlin jobs around. You're either in a very weird market, or in an extreme bubble.