3 ms·
I'm not sure what either link clarify. The first link is someone confusing reassignment mutability with value mutability, a common beginner mistake when they r
by hombre_fatal 7y ago
I'm not sure what either link clarify.
The first link is someone confusing reassignment mutability with value mutability, a common beginner mistake when they read the byline of "const". It's like reading a rant about how { ...obj } only does a shallow clone and thus "doesn't do anything and we all know it" because you can still modify `obj` to modify the new object.
The second link, a tweet, gives no reasoning.