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

Switch to an attribute macro #4

Open
est31 opened this issue Oct 27, 2020 · 4 comments
Open

Switch to an attribute macro #4

est31 opened this issue Oct 27, 2020 · 4 comments

Comments

@est31
Copy link
Owner

est31 commented Oct 27, 2020

It's a bit weird to wrap entire functions / modules into method style macros.

For this though, we'll need support by rustc to syntactically permit postfix macros.

@yonip23
Copy link

yonip23 commented Nov 12, 2020

Maybe you can replace postfix_macros! with a build.rs that does the same thing?

@est31
Copy link
Owner Author

est31 commented Nov 12, 2020

I've sent a PR to rustc to syntactically parse postfix macros: rust-lang/rust#78849

The reactions to this are... mixed. I think it'd be best to next implement the suggestion in rust-lang/rust#78849 (comment)

@akriegman
Copy link

Any updates on this?

@est31
Copy link
Owner Author

est31 commented Aug 27, 2022

No, nothing has changed since.

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

No branches or pull requests

3 participants