-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Idea: more intuitive crate name #169
Comments
(/cc @dtolnay who I mentioned this idea to on Discord) |
Or replace underscores with |
Seems reasonable to me! The crate ended up surviving far longer than I originally thought it would, and I agree that the name is pretty bad given its intended purpose today! We'll want to, as usual, coordinate with |
@dtolnay Do we want to do this renaming before |
Not necessarily -- we can make proc-macro2 reexport from the new name once one is picked, making them effectively aliases. Then quote and syn would be free to change their dependency to the new name in a nonbreaking release. The future of I think it would be good to focus on progress around |
Interesting! I hadn't seen the discussion around the |
When I was learning procedural macros, I found the name
proc_macro2
not super illuminating and even a bit demoralizing: it gave me the feeling that there was a potentially unbounded number of concepts and not-necessarily-coordinated technologies I’d need to learn in order to get off the ground.The purpose of this crate, if I’ve understood properly, is like what the web ecosystem calls a “polyfill”: a shim library that serves as a bridge to allow people to migrate to a new platform capability before that capability has become universally available.
Would it be worth considering, maybe for a future 0.x minor release (ie a pre-stable “Major” release), moving the crate to a new name like
proc_macro_polyfill
orproc_macro_shim
?I feel a name change could really help people compartmentalize the purpose of this crate as they’re learning procedural macros, which could really help prevent them falling off the on-ramp.
Thoughts?
The text was updated successfully, but these errors were encountered: