A quick list of overlooked announcements at WWDC'16
Ok, so sadly I wasn’t at WWDC this year 😢 and followed it only on video 🎥 and Twitter. I bet you all saw the big announcements made during the keynote and the Platform State of the Union talks 🎉. But did you know about all those other new APIs that were added more silently? 🕵
Pattern Matching, Part 4: if case, guard case, for case
Now that we’ve revisited the various syntaxes for pattern matching in part 1, part 2 and part 3, let’s finish this blog post series with some advanced syntax using
if case let,
for case where and all!
Pattern Matching, Part 3: Custom pattern matching & syntactic sugar
In parts 1 and 2 of this article series, we saw some usages of
switch on a lot of things, including
Character and even type. But what if we can use pattern matching even with our own custom types?
Pattern Matching, Part 2: tuples, ranges & types
In the previous article, we saw the basics of pattern matching using
enums. But what about using
switch with anything other than
Pattern Matching, Part 1: switch, enums & where clauses
From a simple
switch to complex expressions, pattern matching in Swift can be quite powerful. Today we’re gonna start exploring it by seing some cool usages of
switch, before going further in later articles with even more advanced pattern matching techniques.