Skip to content

[5.7] Retract ~= for regex. #59811

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

Conversation

stephentyrone
Copy link
Contributor

We'd like to provide this, but we haven't been able to reach agreement on what the semantics actually ought to be. The original version used wholeMatch; contains is arguably more flexible, but feels less natural when compared to how ~= is used for other types in the language.

Additionally, we'd like to investigate the possibility of using named captures to effect bindings in case statements in the future, and we don't want to wall ourselves off from that until we've had time to think about it some more.

@stephentyrone stephentyrone requested a review from a team as a code owner June 30, 2022 15:00
@stephentyrone
Copy link
Contributor Author

@stephentyrone stephentyrone merged commit f2379a1 into swiftlang:release/5.7 Jun 30, 2022
@stephentyrone stephentyrone deleted the retract-tilde-equals-regex-5.7 branch February 8, 2023 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants