Last active
August 8, 2018 17:23
-
-
Save marianosimone/7c59a06ea24c531749722020355774c6 to your computer and use it in GitHub Desktop.
example 1 [java is dead, long live Kotlin - 2018-08 post@thumbtack]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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