Skip to content

Clean up the macros chapter #14058

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

Closed
sanxiyn opened this issue May 9, 2014 · 7 comments
Closed

Clean up the macros chapter #14058

sanxiyn opened this issue May 9, 2014 · 7 comments
Assignees
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

Comments

@sanxiyn
Copy link
Member

sanxiyn commented May 9, 2014

It would be nice to use consistent terminology for macros.

For example, in $a:b, Macros Guide calls b a "fragment specifier", Reference Manual calls it a "designator". Both are inscrutable, and looking at search engine hits "fragment specifier" seems to be a Rust coinage.

Dylan calls it "constraint", which seems reasonable to me. See a section on Dylan Macro System documentation.

@steveklabnik
Copy link
Member

/cc @aturon

@aturon
Copy link
Member

aturon commented Aug 26, 2014

@steveklabnik Do you plan to write docs for writing macros? Our current docs there are very sparse. If/when you do that, I'd be glad to discuss terminology, though I'm a total novice.

@steveklabnik
Copy link
Member

Yes, eventually, the macro guide is being completely redone.

@steveklabnik
Copy link
Member

/cc @kmcallister , what's your opinion here?

@kmcallister
Copy link
Contributor

The macros chapter could use a lot of work. I think we should find more exciting examples for everything before "Hygiene" and then rewrite the explanation around those. I can take a shot at this before 1.0-final.

@kmcallister kmcallister changed the title Consistent terminology for macros Clean up the macros chapter Jan 12, 2015
@kmcallister kmcallister self-assigned this Jan 12, 2015
@kmcallister kmcallister added A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) and removed A-syntaxext Area: Syntax extensions labels Jan 12, 2015
@kmcallister
Copy link
Contributor

In progress as #22393.

@kmcallister
Copy link
Contributor

Landed! ^_^

bors added a commit to rust-lang-ci/rust that referenced this issue Feb 13, 2023
fix negative trait bound in outline view (rust-lang#14044)

try to fix and close rust-lang#14044
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Projects
None yet
Development

No branches or pull requests

4 participants