Using Swift’s defer keyword within async and throwing contexts
How Swift’s defer keyword can be incredibly useful when working with code scopes that have multiple exit points, such as throwing or async functions.
Articles and podcasts about Swift development, by John Sundell.
Presented by the Genius Scan SDK
Frequently published articles about Swift techniques, language features, architectual patterns, and beyond.
Subscribe via RSS
How Swift’s defer keyword can be incredibly useful when working with code scopes that have multiple exit points, such as throwing or async functions.
How to combine Foundation’s latest URL APIs with Swift features like macros, to be able to work with both static and dynamic URLs in simpler and more predictable ways.
After a two-year hiatus, Swift by Sundell is finally back, with new articles published on a regular basis.