This is an Xcode playground that demonstrates the new features introduced in Swift 5.9:
- if and switch expressions
- Value and Type Parameter Packs
- Macros
- Noncopyable structs and enums
- consume operator to end the lifetime of a variable binding
- Convenience Async[Throwing]Stream.makeStream methods
- Add sleep(for:) to Clock
- Discarding task groups
This is designed to complement my existing article What’s New in Swift 5.9. You might also want to read previous articles about the evolution of Swift 5:
- What's New in Swift 5.8
- What’s New in Swift 5.7
- What’s New in Swift 5.6
- What’s New in Swift 5.5
- What’s New in Swift 5.4
- What’s New in Swift 5.3
- What’s New in Swift 5.2
- What’s New in Swift 5.1
- What’s New in Swift 5.0
Alternatively, here you can find a complete breakdown of all Swift changes from 1.0 through 6.0, including downloadable playgrounds: what's new in Swift.
If you hit problems or have questions, you're welcome to tweet me @twostraws or email paul@hackingwithswift.com.