Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upconcat_idents! is not very useful #13294
Comments
alexcrichton
added
the
I-nominated
label
Apr 3, 2014
alexcrichton
referenced this issue
Apr 3, 2014
Merged
std: Document builtin syntax extensions #13255
huonw
added a commit
to huonw/rust
that referenced
this issue
Apr 3, 2014
huonw
added a commit
to huonw/rust
that referenced
this issue
Apr 4, 2014
huonw
added a commit
to huonw/rust
that referenced
this issue
Apr 4, 2014
bors
added a commit
that referenced
this issue
Apr 4, 2014
This comment has been minimized.
This comment has been minimized.
|
(Feature gated in #13295.) |
This comment has been minimized.
This comment has been minimized.
|
not accepted for 1.0 milestone as this is now feature gated. Assigning P-low (rather than closing) so that we can determine what else, if anything, to do here. |
pnkfelix
added
P-low
and removed
I-nominated
labels
Apr 10, 2014
huonw
referenced this issue
Apr 11, 2014
Closed
Can't define a function name using concat_idents!() #12249
This comment has been minimized.
This comment has been minimized.
|
I think a good |
aturon
added a commit
to aturon/rust
that referenced
this issue
Apr 23, 2014
Manishearth
referenced this issue
Aug 28, 2014
Closed
RFC for allowing macros in all ident positions #215
This comment has been minimized.
This comment has been minimized.
|
I agree with @kmcallister, it's a quite useful feature in some cases. |
kylewlacy
referenced this issue
Sep 1, 2015
Open
macro_rules! should support gensym for creating items #1266
This comment has been minimized.
This comment has been minimized.
|
Closing in favor of #29599 |
steveklabnik
closed this
May 24, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alexcrichton commentedApr 3, 2014
It cannot access local variables due to hygiene, it can't be used to create names of a function (not where a macro can appear), and it can basically only be used to access non-hygienic things.
I believe the utility of this macro has been greatly reduced over time, and it may be time to just remove it (or feature gate it)
Nominating (it's a core built-in macro)