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

Update Swift targets to enable ExistentialAny #65

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

pseligman
Copy link
Contributor

Motivation:

With the advent of Upcoming Feature Flags https://www.swift.org/blog/using-upcoming-feature-flags/ , we should make it a one-liner to enable feature flags.

As a follow-on to PR 63, we should enable the ExistentialAny feature flag, as the code currently complies, and we may as well help flag any unintentional regressions to that behavior.

Modifications:

Update Package.swift to allow for one-liner additions of new feature flags. Enable the upcoming feature flag ExistentialAny

Result:

Better confidence that we don't break downstreams that compile this code with ExistentialAny enabled.
Makes it (slightly) easier for future authors to modify the set of enabled feature flags.

Motivation:

With the advent of Upcoming Feature Flags https://www.swift.org/blog/using-upcoming-feature-flags/ ,
we should make it a one-liner to enable feature flags.

As a follow-on to PR 63, we should enable the ExistentialAny feature flag, as
the code currently complies, and we may as well help flag any unintentional
regressions to that behavior.

Modifications:

Update Package.swift to allow for one-liner additions of new feature flags.
Enable the upcoming feature flag ExistentialAny

Result:

Better confidence that we don't break downstreams that compile this code with
ExistentialAny enabled.
Makes it (slightly) easier for future authors to modify the set of enabled feature flags.
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic, thanks @pseligman!

@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Sep 19, 2024
@Lukasa Lukasa merged commit 1a80ac7 into apple:main Sep 19, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants