Apple Launches Swift, a New Programming Language

“The syntax is concise yet expressive, and apps run lightning-fast,” says the company

By on June 2nd, 2014 19:56 GMT

In a surprise turn of events Apple today introduced an all-new programming language called Swift, making code writing even easier and faster, facilitating easy creation of apps with full support for existing Objective-C code.

A new programming language for Cocoa and Cocoa Touch, Swift makes code writing interactive and fun, and offers concise yet expressive syntax. Changes applied to your app are immediately replicated in a new preview pane, and the platform eliminates entire classes of unsafe code automatically.

According to Apple, “Named parameters brought forward from Objective-C are expressed in a clean syntax that makes APIs in Swift even easier to read and maintain.”

“Variables are always initialized before use, arrays and integers are checked for overflow, and memory is managed automatically. Syntax is tuned to make it easy to define your intent — for example, simple three-character keywords define a variable (var) or constant (let),” the company adds.

Interested parties can download “The Swift Programming Language” from the iBooks Store immediately. Developers can begin using Swift code to implement new features in their existing apps, or to create all-new titles ready to be submitted to the App Store. Xcode 6 beta is also available for download today. Everything is available at developer.apple.com/swift, including a guide to get started with the new language.

Comments