Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Why a new LexicalEnvironment Parameter? #306

Description

@mgaudet

I am curious about the design of the specification and its addition of a second lexical environment (PrivateEnvironment) throughout the specification algorithms. By writing this, it feels as if the scope (LexicalEnvironment) and privateScope (PrivateEnvironment) may possibly diverge. I am however unable to see if that’s 1) intended, potentially to support extensions of this proposal 2) possible in the proposal as it exists today.

When first reading about PrivateEnvironment, I had thought that what was going to happen in the specification would be that functions defined in classes would get an additional FunctionLexical environment; this would (I think!) allow the spec to largely operate as is, without having to parallel manipulate private scopes.

Probably missing something, but it did seem a bit odd going through this, so I thought I’d ask.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions