keypaths
Swift 5.2: Keypaths Get a Promotion
When you’re busy programming, it’s easy to sleep through changes in the Swift language, especially minor changes; and Swift 5.2 (which emerged as part of Xcode 11.4) was definitely minor, especially in comparison with Swift 5.1. Still, this is an interesting little improvement worth knowing about. Suppose that a Person has a firstName and a …
Cool Swift Tricks 3: The Garden of Forking Key Paths
This is the third of four posts about random little Swiftisms for you to amaze your friends and confound your enemies. All of these came up in my real code recently, and they really did surprise one or more of my co-workers. The Swift language has a lot of cool features hidden away in its …
Cool Swift Tricks 3: The Garden of Forking Key Paths Read More »