csharplang icon indicating copy to clipboard operation
csharplang copied to clipboard

[Proposal]: list-patterns on enumerables

Open 333fred opened this issue 11 months ago • 0 comments

list-patterns on enumerables

  • Specification: https://github.com/dotnet/csharplang/blob/main/proposals/inactive/list-patterns-enumerables.md
  • Discussion: https://github.com/dotnet/csharplang/discussions/9004

Summary

Allow is [ 1, 2, 3 ] (list pattern) and is [ 1, ..var x, 5 ] (slice pattern) on enumerables.

Design meetings

  • https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-10-19.md
  • https://github.com/dotnet/csharplang/blob/main/meetings/2023/LDM-2023-10-09.md#list-patterns-on-enumerables

333fred avatar Jan 06 '25 22:01 333fred