Skip to content

[Version 11.0] Feature support for list and slice patterns#1591

Draft
RexJaeschke wants to merge 7 commits into
draft-v11from
v11-list-and-slice-patterns
Draft

[Version 11.0] Feature support for list and slice patterns#1591
RexJaeschke wants to merge 7 commits into
draft-v11from
v11-list-and-slice-patterns

Conversation

@RexJaeschke

Copy link
Copy Markdown
Contributor

This is Rex's adaptation of the corresponding MS proposal.

@RexJaeschke RexJaeschke added this to the C# 11 milestone Mar 2, 2026
@RexJaeschke RexJaeschke added type: feature This issue describes a new feature Review: pending Proposal is available for review labels Mar 2, 2026
@RexJaeschke RexJaeschke marked this pull request as draft March 2, 2026 22:24
@RexJaeschke RexJaeschke closed this Mar 5, 2026
@RexJaeschke RexJaeschke reopened this Mar 5, 2026
@BillWagner BillWagner force-pushed the v11-list-and-slice-patterns branch from 2c53a76 to 6156604 Compare May 13, 2026 20:54
RexJaeschke and others added 7 commits June 24, 2026 16:45
Fix four issues in patterns.md:
Remove the stray [ at end of the subsumption "assumptions" block (line ~748: …doesn't hold.[).
Remove the leading space in the SlicePattern2 example annotation: name:" SlicePattern2" → name:"SlicePattern2" (would otherwise break ExampleExtractor lookups).
Collapse three double-spaces in the new sections: …1842-implicit-index-support)  for details, A slice pattern  can be used, expr is [1, .. var s, 3]  is equivalent.
Fix one issue in portability-issues.md:
Reword "re pattern subsumption" → "regarding pattern subsumption" to match the rest of that file's prose.
@BillWagner BillWagner force-pushed the v11-list-and-slice-patterns branch from 6156604 to 00c500b Compare June 24, 2026 20:50
@BillWagner

Copy link
Copy Markdown
Member

An earlier version of this feature is already present on v11-alpha from a prior meeting. Edits made to this PR since then are not yet on v11-alpha; they will land at the next propagation. If you need them on v11-alpha sooner, please open a separate PR targeting v11-alpha.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review: pending Proposal is available for review type: feature This issue describes a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants