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
Swift by Sundell is frequently updated with new articles, podcast episodes, videos, and more.
Subscribe via RSS to get notified when new content gets published.
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.