On Thursday, 27 September 2018 at 13:23:15 UTC, Adam D. Ruppe
wrote:
On Thursday, 27 September 2018 at 05:04:09 UTC, Chad Joan wrote:
As above, I think this might be a very clean and effective
solution for a different class of use-cases :) I'll keep it
in mind though.
Yeah. And I did make one mistake: the tupleof assignment trick
wouldn't work well for references, so lol it isn't much of a
deep copy. You'd want to deep copy any arrays too probably.
But sounds like you are already doing that, yay.
You're right though, if I end up adding boilerplate anyways, I
may as well have a good shallow copy to begin with.