1 / 6

The Evolution of Swift Programming Language

While introducing it in 2014, Apple described Swift as “Objective-C without the C”. Swift came with simpler syntax rules to accelerate application development for macOS and iOS. At the same time, version 1 of Swift adopted several modern programming patterns. Apple has further repaired an array of performance issues to make Swift faster than Objective-C, so it can make some sense for an app developer to shift to Swift from Objective C. Swift also came with language features to help programmers to write reliable and safe application code by eliminating common programming mistakes. At the same time, Swift also supported a number of concepts supported by Objective-C – extensible programming, dynamic dispatch and widespread late binding.

Download Presentation

The Evolution of Swift Programming Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Evolution of Swift Programming Language

  2. Swift 1 • While introducing it in 2014, Apple described Swift as “Objective-C without the C”. Swift came with simpler syntax rules to accelerate application development for macOS and iOS. At the same time, version 1 of Swift adopted several modern programming patterns. • Apple has further repaired an array of performance issues to make Swift faster than Objective-C, so it can make some sense for an app developer to shift to Swift from Objective C. Swift also came with language features to help programmers to write reliable and safe application code by eliminating common programming mistakes. • At the same time, Swift also supported a number of concepts supported by Objective-C – extensible programming, dynamic dispatch and widespread late binding.

  3. Swift 2 • Apple announced Swift 2 at its 2015 WWDC. The company further reveals its plan to make Swift open source by 2016. Also, version 2 of the programming language came with an array of new language features and refinements. • For instance, Swift came with a new error handling model that allowed programmers to use familiar keywords like try, catch and throw. It further added protocol extensions, and used an updated SDK. • The updated SDK helped developers to access the new features provided by each Apple platform along with monitoring platform changes. Swift 2 further worked with Apple SDK more efficiently by taking advantage of two new features provided by Objective-C – nullability annotations and generics.

  4. Swift 3 • In September 2016, Apple released Swift 3.0 with several major improvements and refinements. Apple further made several changes to the language features and standard library of the open source programming language. The company even allowed programmers to port applications written in Swift to Linux. • Swift 3 required programmers to label all method parameters. The new API guidelines for the programming language further allowed programmers to shorten method names by removing unnecessary words. • The programmers even had the option to use lowerCamelCase for enums and properties. Swift 3 further allowed developers to import C functions using attributes for C functions. The new language features enhanced both speed and usability of Swift programming language.

  5. Swift 4 • Apple recently announced Swift 4 at its 2017 WWDC. The latest version of the programming language uses a new codable protocol. Also, Swift 4.0 comes several new language features including multiline string literals and a new string that uses collections, along with improved dictionary functionality, and improved key paths to simplify key value pairing. • It further allows iOS app programmers to initialize variable before use, check integers for overflow, check indices for out-of-bound errors, manage memory automatically, and recover from unexpected failures through controlled recovery.

  6. Apple has strong plans for Swift and this will help in the steady evolution of Swift programming. They will keep updating Swift consistently to accelerate application development for macOS, iOS, watchOS and tvOS. • The upcoming version of Swift will come with several new features and enhancements that will make it easier for programmers to avail the features provided by latest versions of Apple platforms and devices. Content Designed By: Mindfire Solutions

More Related