Earlier quoted context omitted.
Probably a spike in interest/activity/articles because of Google's announcement that it now is officially supported on Android.
Also because some of us absolutely needed a break from java.
Learn Kotlin in Y Minutes
21–30 of 239 posts
Re: Learn Kotlin in Y Minutes
#22In terms of why we'd want to, there is this note here: https://kotlinlang.org/docs/reference/comparison-to-java.htm... Other factors to consider are tools support, how often interoprability with java libraries causes problems. Would be nice to hear from someone who has used it a bit about what the state of these is?
Come on. This is not about actual production stuff. It's new! It's cool! That's pretty much it.
Re: Learn Kotlin in Y Minutes
#23Kotlin's taken over HN.
Deservedly so. It is a great language, and it's backed by the ultra-power JVM. You can use a hipster language with great features and still use JodaTime and maven and all the enterprise stuff that just works.
Re: Learn Kotlin in Y Minutes
#24 if let person = selection?.organization?.owner {
setTitle(person.name)
setImage(person.image)
}Re: Learn Kotlin in Y Minutes
#25Re: Learn Kotlin in Y Minutes
#26Re: Learn Kotlin in Y Minutes
#27In terms of why we'd want to, there is this note here: https://kotlinlang.org/docs/reference/comparison-to-java.htm... Other factors to consider are tools support, how often interoprability with java libraries causes problems. Would be nice to hear from someone who has used it a bit about what the state of these is?
In the future I would use Kotlin for any Android need (obviously) and any time where I wanted to be lighter weight than Scala. As for native/JS use, I am waiting on the multiplatform story to materialize more before I have a strong opinion, but I would still go with Scala for how easy it is to develop multiplatform libs/progs w/ JVM/native/JS where I can easily have platform specific pieces. Kotlin is almost there[2], but not quite yet.
0 - https://github.com/cretz/asmble 1 - https://gist.github.com/cretz/2a49514b18914ef09b7c518db6db11... 2 - https://discuss.kotlinlang.org/t/abstraction-w-jvm-and-js-im...
Re: Learn Kotlin in Y Minutes
#28I wonder why they decided on these very mistakable names. Why not const/constant/cons/whatever else just as long it's distinguishable from each other?
Re: Learn Kotlin in Y Minutes
#29> Declaring values is done using either "var" or "val". "val" declarations cannot be reassigned, whereas "vars" can. I wonder why they decided on these very mistakable names. Why not const/constant/cons/whatever else just as long it's distinguishable from each other?
Re: Learn Kotlin in Y Minutes
#30Earlier quoted context omitted.
What kind of sugar are you looking for? I'd like to have first-class comprehensions in any language I use, but having decent map/filter/reduce|fold implementations is good enough for the most part. (1..100).map({ it + 10 }) Doesn't seem so bad.
You can even get rid of the final parentheses. (1..100).map { it + 10 }