Skip to content

Instantly share code, notes, and snippets.

@marianosimone
Last active August 8, 2018 17:23
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 marianosimone/7c59a06ea24c531749722020355774c6 to your computer and use it in GitHub Desktop.
Save marianosimone/7c59a06ea24c531749722020355774c6 to your computer and use it in GitHub Desktop.
example 1 [java is dead, long live Kotlin - 2018-08 post@thumbtack]
val nonNull: String = null // compilation error
val possiblyNull: String? = “but not null” // this works!
// compilation error, String method call on a nullable String
val uppercase = possiblyNull.toUpperCase()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment