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

Feature request: mark variables as closed over #56

Open
bakkot opened this issue Feb 18, 2018 · 0 comments
Open

Feature request: mark variables as closed over #56

bakkot opened this issue Feb 18, 2018 · 0 comments

Comments

@bakkot
Copy link
Member

bakkot commented Feb 18, 2018

It's possible to derive this from the scope tree, but slightly annoying. And it's useful for certain types of transformations: for example, assuming no dynamic scope,

x && x.a();
x && x.b();

can be transformed into

x && (x.a(), x.b());

if x is known to be local and x is known not to be closed over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant