Article on features of Kotlin and why we can consi...
# feed
r
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
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
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
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
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
np