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

feat: remove loop closures that capture mutable variables #1020

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

anmonteiro
Copy link
Member

This follows #1019, which is a pre-requisite. Since let is block-scoped (whereas var is function-scoped), we don't need to capture these mutable loop variables in an IIFE anymore.

This is a port of rescript-lang/rescript#6480 to Melange

Base automatically changed from anmonteiro/emit-let to main February 6, 2024 22:05
@anmonteiro anmonteiro force-pushed the anmonteiro/turn-off-closures-in-loops branch from 7c99f7a to 2975606 Compare February 6, 2024 22:14
@anmonteiro anmonteiro merged commit 01ea9a1 into main Feb 7, 2024
4 checks passed
@anmonteiro anmonteiro deleted the anmonteiro/turn-off-closures-in-loops branch February 7, 2024 00:48
@anmonteiro anmonteiro mentioned this pull request Apr 5, 2024
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.

1 participant