Skip to content

Rename RegexComponent.Output #281

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

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

natecook1000
Copy link
Member

This renames RegexComponent.Output to RegexOutput, so that it is less likely to collide with other associated type that String, etc might conform to.

@natecook1000 natecook1000 requested a review from rxwei April 14, 2022 22:38
@natecook1000
Copy link
Member Author

@swift-ci Please test

@natecook1000 natecook1000 merged commit da89bf7 into swiftlang:main Apr 14, 2022
@natecook1000 natecook1000 deleted the rename_output branch April 15, 2022 12:40
Azoy pushed a commit to Azoy/swift-experimental-string-processing that referenced this pull request Apr 19, 2022
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 25, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename Output associated type to RegexOutput. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 25, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename Output associated type to RegexOutput. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 25, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename Output associated type to RegexOutput. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 25, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename Output associated type to RegexOutput. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 25, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename Output associated type to RegexOutput. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 25, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename Output associated type to RegexOutput. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 25, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename Output associated type to RegexOutput. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 26, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename Output associated type to RegexOutput. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 27, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename `Output` associated type to `RegexOutput`. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
rxwei added a commit to rxwei/swift-evolution that referenced this pull request Apr 27, 2022
Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename `Output` associated type to `RegexOutput`. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.
airspeedswift added a commit to swiftlang/swift-evolution that referenced this pull request Jul 6, 2022
* [SE-0351] Revise regex builder proposal

Revision:
- Capture takes throwing closures. (swiftlang/swift-experimental-string-processing#261)
- Rename `Output` associated type to `RegexOutput`. (swiftlang/swift-experimental-string-processing#281)
- Define primary associated type for `RegexComponent`.

Clarification:
- Clarify that `RegexComponent` and `Regex: RegexComponent` will be in the stdlib, not in `RegexBuilder`.
- Make detailed design driven by example and move API definition to a collapsible. This is so that the complex result builder machinery won't obscure the API design.
- Add alternative considered section about unifying `Capture` and `TryCapture`.

* Add section about anchors and lookaheads

* Add section re `mapOutput`

* Move mapOutput to Regex instead of RegexComponent

* Address comments.

* Minor fix in RegexComponent declaration

* Capture transform shouldn't be restricted to taking a `Substring`

* Fix syntax highlighting

* Update 0351-regex-builder.md

* Revise `RegexComponentBuilder.buildPartialBlock(first:)`.

Also fix broken links.

* Update 0351-regex-builder.md

Co-authored-by: Nate Cook <[email protected]>
Co-authored-by: Stephen Canon <[email protected]>
Co-authored-by: Ben Cohen <[email protected]>
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