|
|
|
|
|
by dfgdghdf
2467 days ago
|
|
The simplest answer is that immutability allows you to share data around without worrying about it being modified. In the OOP world, you might have a "getter" for a property (e.g. a list of some kind) that you don't want readers to be able to modify. Perhaps "set" was a poor name here, since it usually means something else in a C++ context. I quite like "with". |
|