Pattern matching in Swift — Swift by Sundell

One really elegant aspect of Swift’s design is how it manages to hide much of its power behind much simpler programming constructs. Pattern matching is one source of that power, especially considering how it’s integrated into many different aspects of the language. John Sundell takes a look at a few of those aspects — and how pattern matching unlocks coding styles that can prove to be both really convenient and quite elegant.


Want to receive more content like this in your inbox?