Last active
October 10, 2017 03:19
-
-
Save josh-marasigan/855b018cd5a85064dc8b3c7ef5092ed9 to your computer and use it in GitHub Desktop.
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
// Ran in the same codeblock | |
var box1: String? | |
if let boxContents = box1 { | |
print(boxContents) | |
} | |
--- | |
Nothing Prints | |
var box2: String? = "Something" | |
if let boxContents = box2 { | |
print(boxContents) | |
} | |
--- | |
"Something" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment