When Swift arrays aren't Swift arrays
/A quick read of the Swift documentation tells us that Swift arrays must contain objects of the same type, so this would generate an error:
let myArray = ["String 1",1]
But something that caught me out was that when you import the Cocoa framework, Swift uses NSArray instead, which is full of AnyObject, and the above will compile and run just fine. What makes this a real gotcha (or at least, did for me) is that by default playgrounds import Cocoa at the top.
Great finds
- Casino Non Aams
- Non Gamstop Casinos
- UK Casinos Not On Gamstop
- Betting Sites
- Casino Not On Gamstop
- Casino Non Aams Legali
- UK Casino Not On Gamstop
- Sports Betting Sites Not On Gamstop UK
- Best Casinos Not On Gamstop UK
- Non Gamstop Casinos
- Non Gamstop Casinos
- Online Casino Sin Licencia
- Casino Sites UK
- Casino Online Italia
- UK Casino Sites Not On Gamstop
- Gambling Sites Not On Gamstop
Make the Swift 2.2 to 3.0 transition a little easier with these useful regular expressions for XCode