1/25/2017
Swift (programming language) Wikipedia
Swift (programming language) From Wikipedia, the free encyclopedia
Swift is a generalpurpose, multiparadigm, compiled programming language developed by Apple Inc. for iOS, macOS, watchOS, tvOS, and Linux. Swift is designed to work with Apple's Cocoa and Cocoa Touch frameworks and the large body of extant ObjectiveC (ObjC) code written for Apple products. Swift is intended to be more resilient to erroneous code ("safer") than ObjectiveC, and more concise. It is built with the LLVM compiler framework included in Xcode 6 and later and, on platforms other than Linux,[11] uses the ObjectiveC runtime library, which allows C, ObjectiveC, C++ and Swift code to run within one program.[12] Swift supports the core concepts that made ObjectiveC flexible, notably dynamic dispatch, widespread late binding, extensible programming and similar features. These features also have wellknown performance and safety tradeoffs, which Swift was designed to address. For safety, Swift introduced a system that helps address common programming errors like null pointers, and introduced syntactic sugar to avoid the pyramid of doom that can result. For performance issues, Apple has invested considerable effort in aggressive optimization that can flatten out method calls and accessors to eliminate this overhead. More fundamentally, Swift has added the concept of protocol extensibility, an extensibility system that can be applied to types, structs and classes. Apple promotes this as a real change in programming paradigms they term "protocoloriented programming".[13]
Swift
Paradigm
Multiparadigm: protocol oriented, objectoriented, functional, imperative, block structured
Designed by
Chris Lattner and Apple Inc.
Developer
Apple Inc.
First appeared June 2, 2014[1] Stable release
3.0.2[2] / December 13, 2016
Preview release 3.0.2 preview 1[3] / November 15, 2016 Typing discipline
Static, strong, inferred
OS
Darwin, Linux, FreeBSD
License
Apache License 2.0 (Swift 2.2 and later) Proprietary (up to Swift 2.2)[4][5]
Filename extensions
.swift
Website
swift.org (https://swift.org) Influenced by
Swift was introduced at Apple's 2014 Worldwide C#, [6] CLU, [7] D, [8] Haskell, ObjectiveC, Python, Developers Conference (WWDC).[14] It underwent an Rust, Ruby upgrade to version 1.2 during 2014 and a more major upgrade to Swift 2 at WWDC 2015. Initially, a Influenced proprietary language, version 2.2 was made opensource Ruby, [9] Rust[10] software and made available under Apache License 2.0 on December 3, 2015, for Apple's platforms and Linux.[15][16] IBM announced its Swift Sandbox website, which allows developers to write Swift code in one pane and display output in another.[17][18][19]
https://en.wikipedia.org/wiki/Swift_(programming_language)
1/14