24 Days of Hello World Swift
Today is the day I introduce what I believe will be the youngest language in this series. The new language from Apple, called Swift. This is a compiled language, created for iOS, OS X, watchOS and tvOS development, designed to work with Cocoa/Cocoa Touch frameworks and the body of existing Objective-C code. Compared to Objective-C it is safer and more concise. Core concepts supported is notably dynamic dispatch, late binding, extensible programming and similar features. These are concepts that made Objective-C flexible, but Swift is designed to address problems with performance and safety trade-offs. This includes addressing null pointer problems and optimization that can flatten out method calls. It also introduced an extensibility system, which apple refer to as “protocol-oriented programming” ...