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

Support for structure updates #603

Merged
merged 2 commits into from
Apr 13, 2024
Merged

Support for structure updates #603

merged 2 commits into from
Apr 13, 2024

Conversation

AltGr
Copy link
Contributor

@AltGr AltGr commented Apr 11, 2024

Closes #592

A new node is added in desugared, and translated into an exploded
structure literal during translation to scopelang. The main reason to put
it there is that it needs to be after disambiguation, since that is used to
discover the type of the structure that is being updated.

@AltGr AltGr force-pushed the struct-update branch 2 times, most recently from 945289c to e2c4504 Compare April 12, 2024 08:20
Fixes CatalaLang#600. Thanks to @BapMel for reporting!
Closes CatalaLang#592

A new node is added in `desugared`, and translated into an exploded structure
literal during translation to `scopelang`. The main reason to put it there is
that it needs to be after disambiguation, since that is used to discover the
type of the structure that is being updated.
Copy link
Contributor

@denismerigoux denismerigoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's perfect!

@AltGr AltGr merged commit 87b2c4d into CatalaLang:master Apr 13, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

Syntactic sugar for changing only part of a structure
2 participants