Book description
Swift 3 is the first significant release since Apple’s heralded programming language became an open source project in late 2015. In this report, Jon Manning, Paris Buttfield-Addison, and Tim Nugent—authors of Learning Swift—provide a tour of Swift 3 and its growing ecosystem. You’ll learn about the language’s most impactful and interesting new features, and explore Swift’s use on non-Apple platforms.
Many changes in Swift 3 are subtle refinements that knock the rough corners off the language, making human interactions with Swift much smoother. To help you gain a better understanding of Swift 3, the authors provide a simple program designed for one of Apple’s Swift Playgrounds.
- Get a high-level view of Swift 3’s changes and new features, and learn how this version differs from Swift 2
- Explore the Swift Evolution Process and the full list of accepted proposals—including those not yet implemented
- Dive into Swift 3’s changes to the language’s syntax, standard library features, and other areas
- Examine Swift 3’s use on the server, and use a simple program to learn about Swift’s use on Linux
- Find further resources for learning about, working with, and converting projects to Swift 3
Table of contents
- 1. Introduction
- 2. Understanding Swift 3
-
3. What’s Changed in Swift 3?
-
Using the New Stuff
- The API Guidelines Are Applied to the Swift Standard Library
- The ++ and -- Operators Have Been Removed
- C-style for-loops Have Been Removed
- libdispatch Now Has a Swiftier API
- First Parameters in Functions Now Have Labels
- Foundation Types Are Now Imported as Swift Types
- Objective-C Lightweight Generic Types Are Imported as Swift Generic Types
- Function Parameters Are No Longer Variables, but Constants
- Selectors and Key Paths Are Now Type-Checked
- UpperCamelCase Has Become lowerCamelCase for Enums and Properties
- M_PI is now Float.pi
- Functions Can Be Marked as Having a Discardable Result
- Debugging Identifiers Have Been Made Nicer
- Putting It All Together
- Summary
-
Using the New Stuff
- 4. Swift on the Server, and Swift on Linux
- 5. Conclusion
Product information
- Title: What's New in Swift 3
- Author(s):
- Release date: October 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491966679
You might also like
book
You Don't Know JS: Scope & Closures
No matter how much experience you have with JavaScript, odds are you don’t fully understand the …
book
Modern Software Engineering: Doing What Works to Build Better Software Faster
Improve Your Creativity, Effectiveness, and Ultimately, Your Code In Modern Software Engineering, continuous delivery pioneer David …
book
Design Thinking for Tech: Solving Problems and Realizing Value in 24 Hours
In just 24 lessons of one hour or less, Design Thinking for Tech helps you inject …
book
Righting Software
Right Your Software and Transform Your Career Righting Software presents the proven, structured, and highly engineered …