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

Fix mutable parameters of mutable ADTs #153

Merged
merged 6 commits into from
May 4, 2021
Merged

Conversation

yannbolliger
Copy link
Collaborator

@yannbolliger yannbolliger commented May 3, 2021

Closes #150 but not the anti-aliasing problems described in #154.

This PR incorporates the fixed version of Stainless that fixes the linked issue. For the anti-aliasing problem of mutable ADTs, an approach of deeply copying the ADT at the start of the function by doing a pattern match and then field-wise copy was tried but abandoned (#155).

@yannbolliger yannbolliger requested a review from romac May 3, 2021 13:42
@yannbolliger yannbolliger marked this pull request as draft May 3, 2021 14:34
@yannbolliger
Copy link
Collaborator Author

Converting to draft, because this will only work generally with deep copies of ADTs.

@yannbolliger yannbolliger force-pushed the mutable-fields-debug branch from 24bc9e9 to 1365cc7 Compare May 4, 2021 09:31
@yannbolliger yannbolliger marked this pull request as ready for review May 4, 2021 09:38
@romac romac merged commit 6c7a137 into master May 4, 2021
@romac romac deleted the mutable-fields-debug branch May 4, 2021 09:44
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.

Debug field mutability
2 participants