-
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
More consistent package syntax #3927
Merged
zygoloid
merged 5 commits into
carbon-language:trunk
from
zygoloid:proposal-more-consistent-pack
May 16, 2024
Merged
More consistent package syntax #3927
zygoloid
merged 5 commits into
carbon-language:trunk
from
zygoloid:proposal-more-consistent-pack
May 16, 2024
Conversation
This file contains 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
zygoloid
added
proposal
A proposal
proposal draft
Proposal in draft, not ready for review
labels
May 1, 2024
zygoloid
force-pushed
the
proposal-more-consistent-pack
branch
from
May 1, 2024 20:48
f58e129
to
d00c76a
Compare
Change the syntax for `package` declarations from: ```carbon [package Foo] [library "bar"] api; [package Foo] [library "bar"] impl; ``` to ```carbon [package Foo] [library "bar"]; impl [package Foo] [library "bar"]; ```
zygoloid
force-pushed
the
proposal-more-consistent-pack
branch
from
May 1, 2024 22:15
d00c76a
to
b093019
Compare
github-actions
bot
added
proposal rfc
Proposal with request-for-comment sent out
and removed
proposal draft
Proposal in draft, not ready for review
labels
May 1, 2024
chandlerc
reviewed
May 1, 2024
jonmeow
reviewed
May 2, 2024
Clean up other uses of the term "implementation" where we can instead say "definition" to avoid confusion or ambiguity. Remove some lingering references to the old `api` modifier, replacing them with mentions of the new `private` modifier.
Mention that we're retiring the term "`impl` file". Slightly reorganize.
chandlerc
approved these changes
May 16, 2024
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, ship it!
zygoloid
added a commit
to zygoloid/carbon-lang
that referenced
this pull request
May 20, 2024
Change syntax for package declaration to put the `impl` keyword at the start and remove the `api` keyword. To support this, rearrange processing of package, library, and import declarations to use the general modifier handling support in declaration parsing rather than special-case logic.
github-merge-queue bot
pushed a commit
that referenced
this pull request
May 21, 2024
Change syntax for package declaration to put the `impl` keyword at the start and remove the `api` keyword. To support this, rearrange processing of package, library, and import declarations to use the general modifier handling support in declaration parsing rather than special-case logic. There is an ambiguity in `impl package.Foo as Bar`, which we resolve by treating `package` as an introducer after a modifier only if it's not followed by `.`.
CJ-Johnson
pushed a commit
to CJ-Johnson/carbon-lang
that referenced
this pull request
May 23, 2024
Change the syntax for `package` declarations from: ```carbon [package Foo] [library "bar"] api; [package Foo] [library "bar"] impl; ``` to ```carbon [package Foo] [library "bar"]; impl [package Foo] [library "bar"]; ```
CJ-Johnson
pushed a commit
to CJ-Johnson/carbon-lang
that referenced
this pull request
May 23, 2024
Change syntax for package declaration to put the `impl` keyword at the start and remove the `api` keyword. To support this, rearrange processing of package, library, and import declarations to use the general modifier handling support in declaration parsing rather than special-case logic. There is an ambiguity in `impl package.Foo as Bar`, which we resolve by treating `package` as an introducer after a modifier only if it's not followed by `.`.
ryoari
added a commit
to ryoari/carbon-lang
that referenced
this pull request
May 23, 2024
…ing document to reflect the change to package syntax from proposal carbon-language#3927
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.
Change the syntax for
package
declarations from:to