Copy domains list when creating kernels in realize_reduction#1032
Conversation
… accidental mutation
9ac506a to
473d029
Compare
|
I think I touched some of this last year when doing some typing changes. Wasn't the idea to move more towards making these immutable? i.e. domains are a |
That'd be nice. I suppose typing could help enforce this. (Though we'd probably have to tighten the type to |
Also that would be a pretty breaking change, in case any downstreams expect it to be mutable. Anyways, that's a bigger change, maybe not for this PR 😁 |
Not really! The data structure was always notionally immutable, just not factually so. |
Avoids accidental mutation of
kernel.domainsfrom sharing of domains list reference between kernel andred_realize_ctx.