Lukas Renggli wrote:
> It always annoyed me that #keys and #values create a new collection
> object. Form an object-oriented stand-point of view, what would rather
> make sense is to return a collection that delegates to the dictionary.

+1, I've had similar thoughts.

I'd think DictionaryKeys would need to be a read-only collection. 
Otherwise, what would be the effect of DictionaryKeys>>add: on the 
underlying Dictionary? And even worse effects of trying to add to a 
DictionaryValues...

Regards,

-Martin

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to