One of the great features of Swift is a clean new syntax for first class functions / closures that replaced the quite confusing block syntax. So hopefully we won’t need something like fuckingblocksyntax for Swift.
Constants and variables associate a name (such as maximumNumberOfLoginAttempts or welcomeMessage) with a value of a particular type (such as the number 10 or the string 'Hello'). The value of a constant cannot be changed once it is set, whereas a variable can be set to a different value in the future.
If you were like me this Monday, you were sitting back enjoying the keynote, excited to start trying out all the new lovely APIs. And then your ears pricked up as you listened to words about a new language: Swift! It suddenly hit you that this is not an extension to Objective-C, but a completely brand new language. Maybe you were excited? Maybe you were happy? Maybe you didn’t know what to think.
Swift is the new coding language developed by Apple for Programs and Apps developed in Xcode for IOS and OSX (IDevices and Mac Computers). In this screencast tutorial, I cover: Variables, Strings, Arrays, If Statements and Optionals.