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

dedupe closures generated by #let #4584

Merged
merged 3 commits into from
Aug 16, 2024
Merged

dedupe closures generated by #let #4584

merged 3 commits into from
Aug 16, 2024

Conversation

dwightguth
Copy link
Collaborator

Previously we were generating one LHS term in each #let lambda per use of a particular variable. This introduced complexity for the resulting rule which needed to check that each capture of the same variable had the same value, which is unnecessary work. We fix this by simply deduping the closure so that each variable can be captured at most once by any given lambda.

@rv-jenkins rv-jenkins changed the base branch from master to develop August 13, 2024 16:16
@dwightguth dwightguth marked this pull request as ready for review August 13, 2024 16:49
@dwightguth dwightguth requested a review from Scott-Guest August 13, 2024 16:49
@dwightguth dwightguth enabled auto-merge (squash) August 14, 2024 21:03
@dwightguth dwightguth merged commit fdff3e7 into develop Aug 16, 2024
17 checks passed
@dwightguth dwightguth deleted the lambda branch August 16, 2024 16:45
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