-
Notifications
You must be signed in to change notification settings - Fork 12
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
Simplify skipping syntax nodes... #40
Comments
I think i agree with @nystrom. Or at least, you could consider asserting that there's only a single struct declaration in there. It seems it would a bit strange to encounter something like: @auto_hash_equals begin
struct Foo end
struct Bar end
end As a reader, i would probably incorrectly assume the macro is applying to all the structs, not just the first. No reason to keep this potential misunderstanding, i think. |
The problem is that the block might be the result of applying a macro to the struct, and there might be a |
@NHDaly Asserting that there is only one struct would break this package's ability to interoperate with another hypothetical macro that produces a utility type during its expansion (inside |
hrmm yeah those are good points! Sorry for my long delay. 🤔 Yeah i don't have a great suggestion here then... It's worth noting that i think macros run outside-in, so you should be able to see what the user wrote before any macros are expanded inside the usage? |
in JuliaServices/AutoHashEqualsCached.jl#1 (comment) @nystrom wrote:
The text was updated successfully, but these errors were encountered: