Skip to content

[5.7] Add primary associated type to RegexComponent #456

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

natecook1000
Copy link
Member

This makes the RegexOutput associated type primary for RegexComponent, and adopts the new lightweight generics syntax across the algorithms methods. With this change, methods that don't rely on the specific output type no longer have an explicit generic parameter and methods that do rely on RegexOutput are generic over that type instead of over the component type.

* Add a primary associated type to RegexComponent
* Switch algorithms methods to using opaque params
* Use primary assoc type in RegexBuilder algorithms
@natecook1000 natecook1000 changed the title Add primary associated type to RegexComponent (#454) [5.7] Add primary associated type to RegexComponent May 29, 2022
@natecook1000 natecook1000 added the r5.7 5.7 Release Cherry Picks label May 29, 2022
@natecook1000
Copy link
Member Author

@swift-ci Please test

@natecook1000
Copy link
Member Author

Passed local and Swift CI ✅
cc @stephentyrone

@natecook1000 natecook1000 merged commit e50feb0 into swiftlang:swift/release/5.7 May 31, 2022
@natecook1000 natecook1000 deleted the 5.7/primary_associated_types branch May 31, 2022 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r5.7 5.7 Release Cherry Picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants