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

Extract local mutability #98

Merged
merged 11 commits into from
Mar 12, 2021
Merged

Extract local mutability #98

merged 11 commits into from
Mar 12, 2021

Conversation

yannbolliger
Copy link
Collaborator

@yannbolliger yannbolliger commented Mar 4, 2021

Introduces the possibility to have let mut variables in function bodies and also mut by-value parameters.
This is still safe, because mutable borrow is still forbidden. Hence, all references can still be erased as they are immutable.

Adds most of the features from #92.

@yannbolliger yannbolliger requested a review from romac March 4, 2021 15:53
@yannbolliger yannbolliger changed the title Local imperative Extract local mutability Mar 4, 2021
@yannbolliger yannbolliger marked this pull request as ready for review March 4, 2021 15:55
@yannbolliger
Copy link
Collaborator Author

A comment for reviewers: maybe look at the first commit separately, because it just (semantically equivalently) refactors some existing stuff to make it more suitable for the feature additions.

@yannbolliger
Copy link
Collaborator Author

Split up the negative tests to one single thing that fails.

@romac romac merged commit d2e0d26 into master Mar 12, 2021
@romac romac deleted the local-imperative branch March 12, 2021 14:58
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.

2 participants