Hacker News new | ask | show | jobs
by VeejayRampay 3230 days ago
Because if everything is immutable, it gets very easy to compare two given states and know when and what to update, by using referential equality (if you create a new object every time, then a different "ID" means the data has changed, to grossly simplify the idea behind it).