Hacker News new | ask | show | jobs
by qppo 2081 days ago
Mutability is an abstraction, it doesn't forbid in place modification of data. What it forbids is other code accessing data that holds references the array prior to the modification, which creates a logical error.