-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
RFC: self
in use
#532
RFC: self
in use
#532
Conversation
This proposes the `mod` keyword used to refer the immediate parent namespace in `use` items (`use a::b::{mod, c}`) to be changed to `self`.
For reference, here is the rationale given for
I don’t quite understand the reasoning of the the last point above: |
@P1start Thank you for the pointer, I thought #168 was the original RFC proposed. This still does not really change the points listed in this RFC, I think. |
self +1, things have changed, after last issue which we introduce mod in |
Despite knowing enum variants are namespaced, I hadn't recognized the inconsistency with using |
I think this makes sense given the enum namespace argument. |
Also, for importing associated items in general:
|
+1 to this. |
This does seem sensible, even before enum namespacing, in the general case a namespace didn't correspond to a module (you just couldn't do much with such a path, because UFCS wasn't a thing). |
We discussed this in today's meeting and approve, merging. |
Proposes the
mod
keyword used to refer the immediate parent namespace inuse
items (use a::b::{mod, c}
) to be changed toself
.Rendered