Skip to content

Feature request: mark variables as closed over #56

@bakkot

Description

@bakkot

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions