[Pharo-dev] Immutable collections and encapsulation

Sergi Reyner sergi.reyner at gmail.com
Tue May 13 13:55:33 EDT 2014

2014-05-13 14:28 GMT+01:00 Esteban A. Maringolo <emaringolo at gmail.com>:

> I wouldn't restrict having the option of direct manipulation of the
> collection, but it is a nice thing to have covered by some LINT rules.
> :)

That´s what I meant, in a convoluted way, with "they are crazy". For me,
Java is about restrictions on restrictions on restrictions, which in the
end don´t feel like giving me any advantage. In this case, if I want to
modify the returned collection it should be my business. I may have a
reason to do so. Then again, Java is not a dynamic language and so on... :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20140513/309d9d83/attachment-0002.html>

More information about the Pharo-dev mailing list