Skip to content
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

Allow macros in type expressions #15866

Closed
wants to merge 1 commit into from
Closed

Allow macros in type expressions #15866

wants to merge 1 commit into from

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Jul 21, 2014

This allows you to use macros to write out your awfully long types.

@sinistersnare
Copy link
Contributor

why cant we just say type MyThing = Box<Foo<Bar<Quux<int>>>>;?

@alexcrichton
Copy link
Member

Thank you for the PR! Allowing macros in more positions is an extension to the language which requires an RFC, however. To get approved, this will require a formal RFC to be submitted to the rust-lang/rfcs repository. As a result, I'm going to close this for now until an RFC is submitted.

@huonw
Copy link
Member

huonw commented Jul 21, 2014

@sinistersnare that only covers a small subset of the possible use-cases for this (e.g. one can use a procedural macro to expand to very intricate types).

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants