-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
@constfield
for const
fields?
#800
Comments
Come to think of it, the argument checking out so allow raw symbols as well 🤔 So this additional version would be needed too:
|
I wonder if this could be handled with |
That would be nice, but doesn't work because julia> :(mutable struct Foo
const bar
end)
ERROR: syntax: expected assignment after "const" (That's julia v1.6.) So there's no way of getting them into the argument of |
Yeah, that's why I ultimately ended up with the |
Hi!
I have this in one of my packages:
and wanted to ask whether there's interest to have this macro in Compat? It's used like this:
The idea is to have a noop (if unsupported) replacement for
const foo::Int
in struct definitions.The text was updated successfully, but these errors were encountered: