4 ms·
Well, if you have the concept of Maybe/Optional, it's quite handy to have a conditional binding as control flow (as in Swift): guard let value = myOptional
by wool_gather 8y ago
Well, if you have the concept of Maybe/Optional, it's quite handy to have a conditional binding as control flow (as in Swift):
guard let value = myOptional else {
// Handle absence
}
// Use value
Or
if let value = myOptional {
// Use value
}