Created
October 30, 2019 07:08
-
-
Save BasThomas/b3a2f07f3e5fb7a27b87cbc6e0edcc2a 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
struct Let { | |
let x: String? | |
} | |
struct Var { | |
var x: String? | |
} | |
let l1 = Let(x: nil) | |
// let l2 = Let() // not available | |
let v1 = Var() | |
let v2 = Var(x: nil) | |
l1.x | |
v1.x | |
v2.x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment