Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upcoming feature flag to SE-0414 to match inclusion in compiler #2383

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dempseyatgithub
Copy link
Contributor

An upcoming feature flag is included for SE-0414 in the definition of upcoming features in the compiler.

However, the proposal states that there are no source compatibility issues introduced by this feature: https://github.com/apple/swift-evolution/blob/main/proposals/0414-region-based-isolation.md#source-compatibility

This PR adds the upcoming feature flag to the proposal header. The header also includes the new 'Enabled in Swift 6 language mode' annotation to indicating when the feature will be enabled.

However, typically a proposal describes what breaking changes are gated by the upcoming feature flag.

Is there any additional information as to what this upcoming feature flag enables, what changes will take effect if it is enabled prior to Swift 6 language mode?

Will the upcoming feature flag turn on the entire region based isolation feature in Swift 5 language mode?

I would be happy to add any additional information provided to this PR so the effect of the flag is documented in the proposal.

// cc-ing authors and review manager to ask for additional information and ensure this PR is correct
@gottesmm @JTurcotti @hborla

- Annotate that flag is always enabled in Swift 6 language mode
@hborla
Copy link
Member

hborla commented Mar 28, 2024

However, the proposal states that there are no source compatibility issues introduced by this feature: https://github.com/apple/swift-evolution/blob/main/proposals/0414-region-based-isolation.md#source-compatibility

Ah, this is incorrect. I think this section of the proposal was not updated after it was revised. The decision notes from both rounds of review include changes the impact source compatibility:

Will the upcoming feature flag turn on the entire region based isolation feature in Swift 5 language mode?

Yes, the entire analysis is gated behind the upcoming feature flag

@rjmccall rjmccall added LSG Contains topics under the domain of the Language Steering Group editorial Editorial change to an existing document labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial Editorial change to an existing document LSG Contains topics under the domain of the Language Steering Group
Projects
None yet
3 participants