Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well, it does matter, or rather, it could matter.

For example, say you needed an undo/redo mechanism. If the model were guaranteed to be immutable model, you could simply hang on to the previous models as a sequence of state changes; undoing/redoing is trivial. If the model is mutable, then the undo/redo system has to defensively make a copy before update is called



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: