[squeak-dev] about Dictionary valuesDo:

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Mon Oct 19 20:52:16 UTC 2009


Is there any difference with #do: ?
If not, I suggest deprecating #valuesDo:

More other, browsing #values senders, this pattern:
    aDictionary values do: [:aValue | self doSomethingWith: aValue].
can often be replaced with:
    aDictionary do: [:aValue | self doSomethingWith: aValue].
except of course when aDictionary is modified inside the loop.

Nicolas



More information about the Squeak-dev mailing list