Java for retards, or does it actually have something going for it?
kotlin is fucking awesome my dude
https://fabiomsr.github.io/from-java-to-kotlin/
>>60891864
more up to date link
https://github.com/MindorksOpenSource/from-java-to-kotlin
>>60891555
Java is for retards.
>>60891864
Read first example
>never heard of static imports
Knows the rest of the list is going to be shit
>for (i in 1..10) { }
Great, so if I have to 1..1000000000000 I'm going to OOM because it's generating a list first.
Is kotlin more ruby than python?
>>60891965
It is probably optimized at compile time, like most things.
>>60892735
/g/ likes to pretend that it doesn't know about compiler optimizations. It goes well with the whole "assembly is the only language worth writing in" schtick.
>>60891965
>lists are the only things you can iterate over
>>60893075
/g/ are just schoolkids they don't know much, it is why they are attracted to C and Haskell, good languages for learning.
>>60891555
Pajeet approved wrappers. No thanks OP
it comfier for Android development.
you dont need 'findViewById' anymore
>>60894032
It isn't a wrapper, it's being compiled to a Java machine code binary compatible with a code compiled from Java.
>>60894231
>implying java machine code is any better
It's a better Java. It's not something special like Clojure.
>>60891965
>Great, so if I have to 1..1000000000000 I'm going to OOM because it's generating a list first.
>Range is defined for any comparable type, but for integral primitive types it has an optimized implementation.
https://kotlinlang.org/docs/reference/ranges.html
>>60893957
What comes after Haskell then?
>>60891864
OK so like coffescript is to javascript. Enjoyed a couple of years of popularity and now basically dead, no thanks. Scala is nicer.
>>60894257
I've merely stated that it's not a wrapper. You have a fertile imagination, kiddo.
>>60894730
Formal semantics of programming languages such as denotational sematics.
>>60895080
Kotlin is a second official language for Android, Scala is completely out of scope. It means that you will use Java for Android if you won't use Kotlin.