Hi everyone. The second review of SE-0351: Regex Builder DSL begins now and runs through July 14th, 2022.
This second revision of the proposal incorporates feedback from the first review, as well as some updates from the proposal authors.
A summary of the updates since the first review:
Changes:
- Capture now takes throwing closures
- Rename
Outputassociated type toRegexOutput - Define primary associated type for
RegexComponent - Introduce a
Onetype for disambiguating components from modifiers
Clarifications:
- Clarify that
RegexComponentandRegex: RegexComponentwill be in the stdlib, not inRegexBuildermodule. - Flesh out detailed design, driven by example, moving API definition to a collapsible section. This is so that the complex result builder machinery doesn't obscure the API design.
- Add alternative considered section about unifying
CaptureandTryCapture.
A full diff can be found here
Reviews are an important part of the Swift evolution process. All review feedback should be either on this forum thread or, if you would like to keep your feedback private, directly to me as the review manager by email or by direct message. When emailing directly, please keep the proposal link at the top of the message.
What goes into a review?
The goal of the review process is to improve the proposal under review through constructive criticism and, eventually, determine the direction of Swift. When writing your review, here are some questions you might want to answer in your review:
- What is your evaluation of the proposal?
- Is the problem being addressed significant enough to warrant a change to Swift?
- Does this proposal fit well with the feel and direction of Swift?
- If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?
- How much effort did you put into your review? A glance, a quick reading, or an in-depth study?
More information about the Swift evolution process is available at
https://github.com/apple/swift-evolution/blob/master/process.md
Thank you,
Ben Cohen
Review Manager