|
|
|
|
|
by hocuspocus
2915 days ago
|
|
> The creator of the MutableFoo instance can make all sorts of changes to the instance but then pass it around as a Foo that can't be modified. Until you cast the object... You should use truly immutable data types unless you specifically need otherwise, most modern languages and libraries encourage you to do so. |
|