-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposalProposal champion
Milestone
Description
Allow is [ 1, 2, 3 ] (list pattern), and is [length] (length pattern)is [ 1, ..var x, 5 ] (slice pattern).
Speclet: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-11.0/list-patterns.md
See #3245
LDM Discussions:
- https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-12-14.md
- https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-12-16.md
- https://github.com/dotnet/csharplang/blob/master/meetings/2021/LDM-2021-02-03.md#list-patterns-on-ienumerable
- https://github.com/dotnet/csharplang/blob/main/meetings/2021/LDM-2021-04-12.md
- https://github.com/dotnet/csharplang/blob/main/meetings/2021/LDM-2021-06-07.md#list-patterns
- https://github.com/dotnet/csharplang/blob/main/meetings/2021/LDM-2021-06-14.md#list-pattern-syntax
- https://github.com/dotnet/csharplang/blob/main/meetings/2021/LDM-2021-06-21.md#list-patterns-in-recursive-patterns
- https://github.com/dotnet/csharplang/blob/main/meetings/2021/LDM-2021-09-22.md#open-questions-in-list-patterns
- https://github.com/dotnet/csharplang/blob/main/meetings/2021/LDM-2021-09-22.md#open-questions-in-list-patterns
- https://github.com/dotnet/csharplang/blob/main/meetings/2021/LDM-2021-10-13.md
- https://github.com/dotnet/csharplang/blob/main/meetings/2021/LDM-2021-10-20.md#open-questions-in-list-patterns
- https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-03-09.md#ambiguity-of--in-collection-expressions
e-davidson, Unknown6656, ViIvanov, TCLNA, jnm2 and 64 moreomikhailov, q7164518, MgSam and thewayibyteHaloFour, jnm2, huoshan12345, pinkfloydx33, hez2010 and 17 moreomikhailov, elementh and pablocomUnknown6656, TCLNA, jnm2, EduardoLarios, mungojam and 12 morehaltcase, q7164518 and Nyrestdanielchalmers and Nyrest
Metadata
Metadata
Assignees
Labels
Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposalProposal champion