Skip to content
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

Using .. for Destructuring List Segments #7093

Open
Tracked by #7091
smores56 opened this issue Sep 18, 2024 · 0 comments
Open
Tracked by #7091

Using .. for Destructuring List Segments #7093

smores56 opened this issue Sep 18, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@smores56
Copy link
Sponsor Collaborator

We currently use [first, .. as rest] to capture arbritary segments of lists (rest in this pattern) during matching. We should change this syntax to [first, ..rest] to be consistent with the spread behavior we're adding in #7092.

@smores56 smores56 added enhancement New feature or request good first issue Good for newcomers labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant