-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Exporting imported names #3938
Exporting imported names #3938
Conversation
63b76a6
to
63f2a56
Compare
a0d816c
to
faaf653
Compare
Note, not sure what the best way is to see if people agree on the syntax choice -- I was thinking if there's a preference for an alternative, I can adjust the proposal. But |
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.
LGTM
@zygoloid FYI I want to be sure you notice the namespace commit. I don't think it really changes the proposal, but it I was trying to close some design gaps I realized existed (naively, |
Still LG with namespace changes. I agree that disallowing namespace exports for now is the right choice, consistent with the existing rule that namespaces are exported iff they contain anything exported. |
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.
LGTM, minor wording suggestions below, nothing substantive.
I agree with the option selected for where you can write export
on a name. Checking with other leads to see if I can approve...
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.
And approving with wording fixes.
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.
And approving with wording fixes.
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
And merging (confirmed with the author). |
This implements recent updates to #3938
In order to support exporting imported names, add `export import library <library>` and `export <name reference>` syntax. --------- Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This implements recent updates to carbon-language#3938
In order to support exporting imported names, add
export import library <library>
andexport <name reference>
syntax.