Swift (Programming Language)
Swift (Programming Language)
Apple intended Swift to support many core concepts associated with Objective-C, notably
dynamic dispatch, widespread late binding, extensible programming and similar features,
but in a "safer" way, making it easier to catch software bugs; Swift has features addressing
some common programming errors like null pointer dereferencing and provides syntactic
sugar to help avoid the pyramid of doom. Swift supports the concept of protocol
extensibility, an extensibility system that can be applied to types, structs and classes, which
Apple promotes as a real change in programming paradigms they term "protocol-oriented
programming" (similar to traits).
Through version 3.0 the syntax of Swift went through significant evolution, with the core
team making source stability a focus in later versions. In the first quarter of 2018 Swift
surpassed Objective-C in measured popularity.
Swift 4.0, released in 2017, introduced several changes to some built-in classes and
structures. Code written with previous versions of Swift can be updated using the migration
functionality built into Xcode.