News for hackers. Stuff that matters.
Re:Copying objects in JavaScript by nine_k on Tuesday November 13, 2018 @12:18PM (#18442676)
I suppose immutable.js supports partial reuse of objects, that is, if you only change the value of one attribute, the changed copy has this attribute set differently, but the rest is shallow-copied?

If so, indeed immutable objects would not run into the problem of copying, as long as you can afford them to be immutable. (That is, you're not working with any APIs that assume and use mutability.)

There are no comments on this comment yet.