Skip to content

Instantly share code, notes, and snippets.

@hanslovsky
Created July 10, 2020 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanslovsky/37c98512a36353ceb6fd2c47468da4d7 to your computer and use it in GitHub Desktop.
Save hanslovsky/37c98512a36353ceb6fd2c47468da4d7 to your computer and use it in GitHub Desktop.
const val BEST = "PAH"
val String?.better: String
get() = BEST
fun main(vararg args: String) {
val name = args.firstOrNull()
println("Hello, ${name.better}!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment