6 ms·
I learned some Swift when it as at 1.2 and I'm happy to see it evolve so quickly and take common statements, like the optional unwrapping "very long `if let` st
by flanbiscuit 9y ago
I learned some Swift when it as at 1.2 and I'm happy to see it evolve so quickly and take common statements, like the optional unwrapping "very long `if let` statement" mentioned article, and simplify it. I really should get back into Swift.
- yoz-y 9y agoSwift also has the `defer` statement which makes this particular approach usable even if there is cleanup to do before the function can exit.