roc-lang / roc

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

Using .. for Destructuring List Segments #7093

Open smores56 opened 2 weeks ago

smores56 commented 2 weeks 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 day ago

Will take a stab at this one