Repository navigation
D184 amended: a script's top-level binding is a local of the implicit main; a helper captures it - #2979
Merged
Conversation
… main; a helper that names it captures it Eric's amendment of 2026-11-02 replaces the globals ruling after its implementation exposed three consequences (a view at a script's top level, a helper shadowing a script binding, by-use typing of script bindings): one model instead of three rules. §29.15 and the record carry his words; the implementation is NON-COMPLIANT until it catches up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs-only. Eric's amendment of the D184 ruling (2026-11-02): script bindings are locals of the implicit main (views allowed, typed by uses in main up to the last top-level use), helpers capture them (observe or mutate, never consume; an ephemeral capture makes the helper non-escaping), helper locals shadow them (D173). Replaces the globals model that #2970 recorded; the WIP implementation on d184-script-globals is superseded. spec-inventory-check green; no battery.