2 ms·
Arguably the newly supported guard syntax is nicer: guard let foo = optFoo { Swift.print("oops, this optional thing wasn't optional") } Swift.print("now \(f
by sulam 11y ago
Arguably the newly supported guard syntax is nicer:
guard let foo = optFoo {
Swift.print("oops, this optional thing wasn't optional")
}
Swift.print("now \(foo) is in scope and non-nil")