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 use of CGP proc macros without explicit import of prelude #40

Open
soareschen opened this issue Dec 7, 2024 · 0 comments
Open

Comments

@soareschen
Copy link
Collaborator

Currently, the CGP pro macros are unhygenic, and requires import of cgp::prelude::* for the expanded syntax to work. Unfortunately, there is no equivalent of $crate in the proc macro world to help us bind CGP constructs with proper module path.

We would need to figure out how to properly scope CGP constructs inside the macro expansion, so that the macros could work even if users don't import the prelude.

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

1 participant