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

✨ Add syntax for updating object fields. #83

Open
hayleigh-dot-dev opened this issue Dec 3, 2021 · 0 comments
Open

✨ Add syntax for updating object fields. #83

hayleigh-dot-dev opened this issue Dec 3, 2021 · 0 comments

Comments

@hayleigh-dot-dev
Copy link
Contributor

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 } => ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant