Skip to content

Instantly share code, notes, and snippets.

@BasThomas
Created October 30, 2019 07:08
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 BasThomas/b3a2f07f3e5fb7a27b87cbc6e0edcc2a to your computer and use it in GitHub Desktop.
Save BasThomas/b3a2f07f3e5fb7a27b87cbc6e0edcc2a to your computer and use it in GitHub Desktop.
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