https://kotlinlang.org logo
#feed
Title
# feed
r

Raghavendra Rao K

09/03/2018, 11:58 AM
Article on features of Kotlin and why we can consider Kotlin as a choice of programming language for the application development. https://www.linkedin.com/pulse/kotlin-game-changer-raghavendra-rao/
m

marcinmoskala

09/03/2018, 3:08 PM
All you need to make "Hello World" program is:
Copy code
fun main(args: Array<String>) {
    println("Hello, world!")
}
https://try.kotlinlang.org/#/Examples/Hello,%20world!/Simplest%20version/Simplest%20version.kt
👍 1
You don't need any object. Under the hood this function will be placed in FilenameKt class
j

James

09/10/2018, 8:17 PM
you can make it even better!
Copy code
fun main(vararg cow: String) {
    println("wow")
}
👍 2
also a null assertion is not the same a null check. one will cause a crash
m

marcinmoskala

09/11/2018, 10:45 AM
Not sure if this is better. Usage is the same, takes as much space and I think it is less clear because type of argument is not explicit. But I still like the fact that it is possible 🐶
r

Raghavendra Rao K

09/17/2018, 8:53 AM
Thanks for these inputs, updated the article with these inputs.
the object for the hello world and in other examples added to indicate the intent of what that class is doing, yeah without the object, main function works👍
m

marcinmoskala

09/17/2018, 8:58 AM
np
2 Views