Skip to content

Checking for a name being defined is good but appears to use a single pass #531

Open
@b1conrad

Description

@b1conrad

Phi wrote, "Seems like the definedness checker that is part of the parser is single pass, so names must be declared before they are used (textually, not temporally). That’s probably OK for now, although we’re going to run into cycle problems at some point (mutually recursive functions, for example). The ways to solve that are two pass parser (do definedness checks after the entire file has been parsed) or with declarations. I think I prefer two passes--simpler for the developer."

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