-
Notifications
You must be signed in to change notification settings - Fork 1
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
support non symbolic labels #17
base: master
Are you sure you want to change the base?
Conversation
Why use |
It would be great to avoid
That would be fine as well.
I don't think it complicates the API. You can still
The use case is that if |
Sorry, I didn't look into this thoroughly enough. You're right, the way that this PR proposes is only possible, if we use |
I agree module MyPackage
using OptionalArgChecks: markmacro, skipmacro
struct MyLabel end
macro mymark(code)
markmacro(MyLabel(), code)
end
macro myskip(code)
skipmacro(MyLabel(), code)
end
end#module |
Yes, that's basically what I was thinking of |
This allows namespacing labels. Symbol labels still work, but you have to write the symbol with
: