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

Add Context.globalThis property#104

Merged
qwenger merged 1 commit intomasterfrom
feature_global_this
May 2, 2022
Merged

Add Context.globalThis property#104
qwenger merged 1 commit intomasterfrom
feature_global_this

Conversation

@qwenger
Copy link
Collaborator

@qwenger qwenger commented May 2, 2022

No description provided.

@qwenger
Copy link
Collaborator Author

qwenger commented May 2, 2022

Choice of the name:

  • global may have been simpler and more pythonic, but it is a reserved keyword
  • globalThis is therefore the logical choice, because it matches JS
  • global_this would be more in Python-style, but it doesn't seem sensible to introduce yet another name for this concept.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant