Jump to content

Swift (programming language)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Milaney (talk | contribs) at 04:48, 3 June 2014 (Grammar). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Swift
File:Apple Swift Logo.png
DeveloperApple
First appeared2014
Websitehttp://developer.apple.com/swift
Influenced by
Objective-C

Swift is an object-oriented programming language for iOS and OS X development, introduced by Apple at its WWDC 2014.[1] It is intended to coexist with Objective-C, the current programming language for Apple operating systems.[1] Swift is designed to be more resilient against erroneous code. It is built with the LLVM compiler.

On June 2, 2014, the WWDC conference app became the first publicly released Swift app.

Example code

let people = ["Anna": 67, "Beto": 8, "Jack": 33, "Sam": 25]
for (name, age) in people {
    println("\(name) is \(age) years old.")
}

See also

References

  1. ^ a b "Apple announces Swift, a new programming language for iOS".

External links