-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates explanation of modules #369
Conversation
For an inner module, it also includes the modules previously made available by the enclosing | ||
module (via `import` or `module`). | ||
* The macro table and symbol table are empty. | ||
Before any clauses of the module definition are examined, each of these is empty. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The modules bindings does not contain $ion
or _
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct. The bindings for $ion
and _
are at the stream level. Referencing them inside a module will result in recursive lookups through the parent scopes until it reaches the stream. (Optimizations are possible, of course, but this is the behavior that must be achieved.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, noting there are a few minor corrections suggested by Matt.
This PR replaces the singular 'encoding module' model with the new 'encoding module sequence' design. It does not update all of the many examples in the spec that use the old model. I will put together a follow-on PR that addresses those (more mechanical) substitutions.
It also updates some of the text in the "What's New" section to reflect recent developments.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.