3 ms·
> The pattern matching in Swift isn't much better than what you would get with a tagged C union In what way? Pattern matching in Swift is quite powerful; defin
by austinz 10y ago
> The pattern matching in Swift isn't much better than what you would get with a tagged C union
In what way? Pattern matching in Swift is quite powerful; definitely better than C's switch statement. This blog post is a good overview of its capabilities. https://appventure.me/2015/08/20/swift-pattern-matching-in-detail/ https://appventure.me/2015/08/20/swift-pattern-matching-in-d...