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

Allowing imports and macro declaration everywhere? #931

Open
GuillaumeGomez opened this issue Dec 7, 2023 · 2 comments
Open

Allowing imports and macro declaration everywhere? #931

GuillaumeGomez opened this issue Dec 7, 2023 · 2 comments

Comments

@GuillaumeGomez
Copy link
Collaborator

It's currently not possible to use import or to declare macro if it's not in the top level, which is very quickly problematic in case you have includes and equivalents.

So questions are:

  • Is there a reason for this limitation?
  • Would you be open to lifting it?
@djc
Copy link
Owner

djc commented Dec 7, 2023

See also #915. I'm on the fence about it a little? I'd like to see clear use cases for these and ideally also understand the performance impact on the codegen setup.

@GuillaumeGomez
Copy link
Collaborator Author

I wonder if #915 can cover my use-case, it's a bit more limited. Gonna give it a try.

As for performance impact, I'm curious about it as well. We can ask for some comparison.

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

2 participants