-
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
Singular extern
declarations
#3980
Conversation
e5f5c2f
to
8c2f391
Compare
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.
Looks good to me other than the open leads issue around has_extern
syntax.
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.
Thanks, overall I think the proposal looks great. Added some super minor suggestions in line, but they don't seem to be very significant.
I did suggest another attempt at writing up rationale for the alternative, although I'm not confident in the words I ended up with either. Maybe you or others have better ways of summarizing this.
In general, with whatever improvements to the alternative syntax rationale we converge on, I'm happy with this landing.
Co-authored-by: Chandler Carruth <[email protected]>
Co-authored-by: Chandler Carruth <[email protected]>
a121a62
to
0564943
Compare
FYI, added extended notes on syntactic matching (specifically, why it won't apply for |
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, and approved for leads!
Trying to pull in key elements of #3762, #3763, and #3980 (decl matching and `extern`, essentially). These aren't specific to any particular declaration type, but are common to entities, so suggesting a new doc oriented on that. There's probably more that could be said here, I'm just focused on getting the recent formal discussion mirrored into the design. --------- Co-authored-by: josh11b <[email protected]>
Each entity is restricted to one, optional
extern
declaration. If used, it must be imported by the defining library. The defining library annotates the existence of anextern
with thehas_extern
modifier.