News for hackers. Stuff that matters.
Re:What’s New in ES2019 by pault on Tuesday July 30, 2019 @10:35AM (#20565159)
Does shallow copying have the same issues? For example, `let foo = { x: 1, ...bar }` just makes a new object with references to bar's members.
Re:What’s New in ES2019 by Jasper_ on Tuesday July 30, 2019 @10:47AM (#20565272)
Shallow copying will create a new object, and thus, some (small) amount of GC garbage. Less than a deep copy, for sure, which means less frequent pauses, but still garbage to clean up nonetheless.