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

Request macros can not accept mixed field definitions (with and without aliases) #41

Open
kstep opened this issue Feb 3, 2016 · 1 comment

Comments

@kstep
Copy link
Owner

kstep commented Feb 3, 2016

It would be nice, if we could mix fields with aliases (field_name as (field_alias): ...) and without aliases (field_name: ...) in the same request! or request_ref! macro invocation.

The problem is fields definition block in the macros is not homogeneous, because I can't use incremental TT muncher pattern, as macro calls doesn't work inside struct definitions, and I have to put macro call inside struct to unroll heterogeneous fields pattern.

@kstep
Copy link
Owner Author

kstep commented Feb 3, 2016

Maybe RFC873 will help me here. Another option is move to procedural macros, but that would increase building complexity for stable compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant