-
Notifications
You must be signed in to change notification settings - Fork 17
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
Modify array of immutables in place #134
Comments
Yes. So I think the main ingredients to support this do exist. There needs glue code to be written and probably some polishing, packaging and design decisions. I think what you want is an |
The reason this does not already exist is probably that it requires |
Note that BangBang.jl has the widening semantics. So it's also possible to come up with an alternative |
If I have an array of immutable datastructures, it would be extremely advantageous from a performance perspective to be able to mutate that array in place instead of replacing it. The
@set
and@set!
macros don't currently support this.Any ideas on supporting this use-case?
EDIT: possible duplicate of #32
EDIT2: and possibly solved by the macro definitions in the examples folder? Is there a reason those are an example rather than an exported part of Setfield.jl's public api?
The text was updated successfully, but these errors were encountered: