Skip to content

Instantly share code, notes, and snippets.

@mbrandonw
Created June 11, 2014 14:28
Show Gist options
  • Save mbrandonw/df260f19872a9c3c74e8 to your computer and use it in GitHub Desktop.
Save mbrandonw/df260f19872a9c3c74e8 to your computer and use it in GitHub Desktop.
Uninitialized string
vWelcome to Swift! Type :help for assistance.
a 1> var x:String
x: String = {
core = {
_baseAddress = Builtin.RawPointer = 0x0000000000000000
_countAndFlags = 0
_owner = None
}
}
2> "test \(x)"
fatal error: Can't unwrap Optional.None
Execution interrupted. Enter Swift code to recover and continue.
Enter LLDB commands to investigate (type :help for assistance.)
3>
@thillerson
Copy link

Optional? That's strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment