-
Notifications
You must be signed in to change notification settings - Fork 488
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
Document name resolution. #568
Comments
Just to kick off a little discussion of the outline: a long while back I started an outline here: ehuss@bb2e84b Since I think this will overall be a meaty topic, I think it would be good to split it into separate files from the start. I think the "Paths" chapter should be moved underneath name resolution, since it doesn't really belong in the lexical chapter. Some high-level questions:
|
I think it would be good to have at least a list of definitions with links to other chapters, even if majority of the text will be elsewhere.
They are called |
Just to add a couple more questions:
I like the term For "elements", we could just be informal and say "parts of a program". |
In C++ it's officially called "name lookup", for example.
I would personally prefer "names". |
Yes. That is entirely correct and I am way too tired. |
Name resolution should be documented. This is a large topic. A few pieces I can think of:
macro_use
andmacro_export
.Enum::<Type, Params>::Variant
allowed since 1.33 rust#69356 for an unusual example.macro_use
prelude, the "tool prelude" (I think), etc. DONE Start documenting name resolution. #937no_implicit_prelude
should clarify which preludes are not included. DONE Start documenting name resolution. #937use
handle something that is available in multiple namespaces (such as a module and a type).The text was updated successfully, but these errors were encountered: