Closures Capture Semantics, Part 1: Catch them all!

Even with ARC nowadays, it’s still important to understand memory management and objects life-cycles. A special case is when using closures, which are more and more present in Swift and have different capture semantics than ObjC’s block capture rules. Let’s see how they work.

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 tuples, Range, String, 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 switch on enums. But what about using switch with anything other than enum types?