Skip to content

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
@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.

2 participants