jemmons: Wouldn’t it be great if we could teach switch new matchers that knew how to deal with our custom objects? Believe it or not, there’s an operator for that.It’s called the pattern match operator, sometimes known by its (less googleable) syntax: ~=. And switch statements use it behind the scenes to compare values to … Continue reading Custom Swift Switch Matchers
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed