-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rename Span::default
-> Span::def_site
#45999
Conversation
827f9bd
to
74cc1fd
Compare
Bikeshedding: I think the expanded |
I thought |
Oh. Well, I don't know what I'm talking about, clearly, but I think that confusion is itself evidence that it should be the longer name. |
To be clear, I don't either -- I do agree that longer names would be helpful. |
def_site seems fine to me, definition_site is kinda better but it is pretty unwieldy. I expect we'll re-visit these names before stabilising and either we'll use def_site widely so that it will be a well-known term for macro authors, or we'll change the name |
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.
@bors r+
@bors: r+ |
📌 Commit 74cc1fd has been approved by |
☀️ Test successful - status-appveyor, status-travis |
As a data point: my 616-line proc macro uses My suspicion is that most users will use I'm happy to wait for stabilization before bikeshedding that though. |
I think the explicitness here is warranted.
c.f. #45934
r? @nrc