Comment by rezonant
5 years ago
Very true. JS has object freezing but that would affect the class's own mutations. On the other hand you could make a single copy upon mutation, freeze it, and then return the frozen one for iteration if you wanted to. Kind of going a bit far though imho.
No comments yet
Contribute on Hacker News ↗