4 ms·
Just a late addition to anybody who sees this, I tend to think of `if let` and `if var` statements in Swift as syntactic sugar for: switch someOptional {
by zapzupnz 8y ago
Just a late addition to anybody who sees this, I tend to think of `if let` and `if var` statements in Swift as syntactic sugar for:
switch someOptional {
case .none:
// whatever
case .some(let x):
// do stuff with x
}