compiler icon indicating copy to clipboard operation
compiler copied to clipboard

✨ Add syntax for updating object fields.

Open hayleigh-dot-dev opened this issue 4 years ago • 0 comments

Most likely this a will be JS-style spread operator:

{ ...obj, field: newValue }

Not sure if I should open another issue, but it would be very nice to support this syntax in pattern matching too:

when obj
  is { field, ...rest } => ...

hayleigh-dot-dev avatar Dec 03 '21 07:12 hayleigh-dot-dev