Notes WWDC 2022 : What’s new in Swift
Mes notes pour la session What’s new in Swift de la WWDC 2022.
Community update
- Workgroups
- Mentorship
- swift.org/diversity
Swift packages
- Trust On First Use
- Command plugins
- Build tool plugins
- Module disambiguation (
moduleAliases
)
Performance improvements
- Swift driver settings
- Optimizations
- Runtime improvements
Concurrency updates
- Back deployed
- Extensions to the model
- Data race safety
- Open source packages for async algorithm
- Concurrency optimizations
- New concurrency view in Instruments
Expressive Swift
- Shorthand optional unwrapping (
if let
/guard let
) - Better closure type inference
- New pointer conversions
- String parsing: regex literals and builder library
- Generic code clarity, improvements to
any
types