Reply to post: Didn't want to cut in line.

You're not still writing Android apps in Oracle's Java, are you? Google tut-tuts at dev conf

GrapeBunch
Childcatcher

Didn't want to cut in line.

OK, I'm brain-dead, but I do find the first example of a Kotlin programme in the Wikipedia to be confusing. My first but not only confusion is the variable name, which seems to be scope. To me, that word wants to be a keyword. If it is not a keyword, then don't use it.

// Hello, World! example

fun main() {

val scope = "World"

println("Hello, $scope!")

}

fun main(args: Array<String>) {

for (arg in args) {

println(arg)

}

}

The discussion so far has been remarkably blood-free, considering that it is about religion.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon