roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.45k stars 312 forks source link

Using .. for Destructuring List Segments #7093

Open smores56 opened 1 month ago

smores56 commented 1 month ago

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 https://github.com/roc-lang/roc/issues/7092.

avillega commented 1 month ago

Will take a stab at this one