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

pure macros #3380

Closed
jesse99 opened this issue Sep 4, 2012 · 1 comment
Closed

pure macros #3380

jesse99 opened this issue Sep 4, 2012 · 1 comment
Labels
A-frontend Area: frontend (errors, parsing and HIR) A-syntaxext Area: Syntax extensions

Comments

@jesse99
Copy link
Contributor

jesse99 commented Sep 4, 2012

It would be slick if macros could match a pure_expr. Stuff like logging macros could use a pure_expr to ensure that the code behaves the same way with logging on or off.

@graydon
Copy link
Contributor

graydon commented Sep 5, 2012

Purity checking happens much later than syntax expansion. We could force the result of a macro to be pure by wrapping it in a suitable function and passing it to some context that requires purity, but in general this is not a syntactic issue. Closing WONTFIX.

@graydon graydon closed this as completed Sep 5, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this issue Mar 15, 2024
make cron job topic names more consistent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: frontend (errors, parsing and HIR) A-syntaxext Area: Syntax extensions
Projects
None yet
Development

No branches or pull requests

2 participants