Affiliate Disclosure
If you buy through our links, we may get a commission. Read our ethics policy.

Apple's Swift developers discuss enhancements coming in Swift 4.1

Last updated

Members of Apple's Swift Core team made a special appearance on the Swift Unwrapped podcast to discuss enhancements being rolled out as part of Swift 4.1 and how the company is expanding upon its efforts to engage with the community.

Apple's Doug Gregor, who works on the Swift compiler, and Ben Cohen, the release manager of the Swift Standard Library, joined the Swift Unwrapped discussion, focusing on improvements being made to generics and conditional conformances.

Apple's Swift 4.1 documentation explains that genrics enable developers "to write flexible, reusable functions and types that can work with any type, subject to requirements that you define. You can write code that avoids duplication and expresses its intent in a clear, abstracted manner."

The developers noted that Swift's Standard Library was originally designed from the start to take advantage of planned enhancements to generics, and now that Swift 4.1 is delivering a new "plateau" of support for generics, it is allowing them to "eliminate huge swathes of code" that is no longer necessary. Our goals for Swift are ambitious: we want to make programming simple things easy, and difficult things possible

The first beta of Swift 4.1 was released as part of the Xcode 9.3 and iOS 11.3 betas, and will ship when those releases are finalized, likely by the end of this month. Swift 4.1 is not binary compatible with 4.0, but is designed to be a source compatible update, meaning existing code should compile with the Swift 4.1 compiler.

Swift 4.1 also delivers improvements to the Swift Package Manager, Swift on Linux and brings "general quality improvements" to the compiler and Standard Library.

Apple first introduced Swift as a new programing language for Mac, iOS and other platforms in 2014. Since then it "has quickly become one of the fastest growing languages in history," the company notes on its Swift.org website.

"Swift makes it easy to write software that is incredibly fast and safe by design. Our goals for Swift are ambitious: we want to make programming simple things easy, and difficult things possible."

In November, freelancer site Upworks noted that Swift development was one of the fastest-growing skills in demand, with 200 percent year-over-year growth.

In January, an analysis of data from GitHub and Stack Overflow stated that Swift had tied Objective-C to enter the top ten development languages in terms of usage and discussion among developers. That's a remarkable feat given that Swift is largely focused on Apple's platforms, despite its open development and support for Linux.

Apple has been working hard to promote Swift has a language, promoting its "App Development with Swift" curriculum being used at over 70 high school and colleges worldwide, along with developing the free Swift Playgrounds app to make it easy and even fun to learn for everyone with an interest in development.



8 Comments

georgie01 8 Years · 437 comments

Ok ... this is one thing I don’t like about Swift being open source. Progress is great, but it’s updated frequently enough that it’s a little bit of a pain without a lot of gain. Not everyone is a geek who feels they constantly need the latest and greatest in language developments. Swift is great and I really like the updates, but I don’t like having to alter code and wonder about deprecated or changed syntax as much as I’m having to.

applesauce007 17 Years · 1703 comments

Can swift replace C for tight memory environments?
"Hello World" for example is much smaller in C.
Looking forward to the new Swift standard lib with generics improvements.

pg4g0001 8 Years · 18 comments

georgie01 said:
Ok ... this is one thing I don’t like about Swift being open source. Progress is great, but it’s updated frequently enough that it’s a little bit of a pain without a lot of gain. Not everyone is a geek who feels they constantly need the latest and greatest in language developments. Swift is great and I really like the updates, but I don’t like having to alter code and wonder about deprecated or changed syntax as much as I’m having to.

Such a nascent language was always bound to have these types of changes. In maturity languages find their stability. Considering how much Swift pioneered in joining so many different programming techniques into a cohesive, unified language, there was a lot of early learning that could only come through use. This is unrelated to the fact the language is open source - most of these changes, eg the Generics Manifesto and Constrained Conformances were driven by Apple themselves, not the open source community. And the additions from the community have tended to be additive, not changing things that break you. Those changes were driven by the Swift Core Team in pursuit of their goals for the language.

ivanh 12 Years · 596 comments

“Apple has been working hard to promote Swift has a language, promoting its "App Development with Swift" curriculum being used at over 70 high school and collegesworldwide”
The key word is “promote”, not support. How hard was it? There’s just a free of charge book everyone can download, and then self study it. You enrol in that course and pay a big sum of money, read the book, do exercises and a guided project, then do a project with Swift programming in chapters ahead. You finish the project and get a certificate, not endorsed by Apple, unlike those from Microsoft. After that, some small app developing firm may hire you, without giving you training. Short courses of it definitely not d”doing it at your own pace”, and it’s only good for those current practicing coding. 
Is it another (potential/new) revenue stream of Apple? I don’t know. But you can always download the App Development with Swift from iBooks Store, free of charge.joined the course already, better get a refund now.

A curriculum? Sorry, it’s just a e-book. You can get a much better quality of training from udemy at 1% of the course fees being charged by some of the 90 colleges.

ivanh 12 Years · 596 comments

A curriculum? Sorry, it’s just a e-book. Don’t overstate it.