Monday, March 3, 2025

Swift 6.1

Mishal Shah:

This post describes the release process, and estimated schedule for Swift 6.1.

Donny Wals:

The Xcode 16.3 beta is out, which includes a new version of Swift. Swift 6.1 is a relatively small release that comes with bug fixes, quality of life improvements, and some features.

[…]

Starting in Swift 6.1, Apple has made it so that we no longer have to explicitly define the return type for our child tasks. Instead, Swift can infer the return type of child tasks based on the first task that we add to the group.

[…]

However, it’s kind of strange in a way that the compiler is using an extension on Int that’s defined in a module that I didn’t even import in this specific file.

[…]

In Swift 6.1, we can opt into a new member visibility mode. This member visibility mode is going to work a little bit more like you might expect.

Matt Massicotte:

I really like proposals that make things work more intuitively. What this one does is expand the use of nonisolated so you can better control global isolation inference.

[…]

I completely missed this one when it was pitched! It’s just a great little quality-of-life improvement for the with*TaskGroup family of APIs.

[…]

Another area that has seen attention is around the sending keyword. There were a number of situations where the compiler was too conservative with sending and 6.1 has gotten a lot better!

Previously:

Comments RSS · Twitter · Mastodon

Leave a Comment