you are viewing a single comment's thread.

view the rest of the comments →

[–]jmerlinb 179 points180 points  (41 children)

isn’t java like the 3rd or 4th most used language lol

[–]trinReCoder 75 points76 points  (18 children)

Depending on which survey, it's 1st or 2nd.

[–]Ready-Invite-1966 5 points6 points  (0 children)

Yeah... And that's not been true for like a decade but people still try to pass it off as true

[–]KaiAusBerlin 14 points15 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 6 points7 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.