I’m not used to using a switch
to deal with data that could be of any type.
I’m a big fan of type safety, and that means I don’t like using the Any
type. However, I did find it interesting that in the official Swift documentation (the open source project, not the Apple API) there are ways to cast that I hadn’t used befor…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.