|
|
|
|
|
by Koshkin
3697 days ago
|
|
For people coming from C/C++/ObjC, some things in Swift can take some time to get used to, e.g.
if case .Success(let person) = personResult {
...
}
My first thought when I saw this was, "only mother could love this syntax", but later you come to appreciate and enjoy the syntax. Link: https://www.natashatherobot.com/swift-guard-better-than-if/ |
|