Swift

From Just Solve the File Format Problem
Revision as of 23:15, 3 June 2014 by Dan Tobias (Talk | contribs)

Jump to: navigation, search
File Format
Name Swift
Ontology
Extension(s) .swift
Released 2014

Swift (no relation to OpenStack Swift or Tom Swift or Taylor Swift; and apparently also unrelated to the parallel scripting language Swift) is a programming language announced by Apple in 2014 as a new language for use in developing apps for iOS or OS X. It is able to coexist with the previous main language for this use, Objective-C, through the use of "bridging headers" that are read by both languages and allow classes from each language to be accessed from the other.

Swift appears to borrow syntax elements from a number of other programming languages. It uses curly braces to mark blocks like the C family of languages, but does not use semicolons between statements. Some other syntax and keywords resemble BASIC and Pascal, among other languages. It also has an instant-gratification interpreted mode to try out program statements in real time, like Python; Swift (as implemented in the Xcode environment on OS X) has a "playground" to test out programming constructs without needing to build an entire app. An introductory book on the language can be downloaded free through iTunes, but in a format that is only readable on Apple devices.

References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox