On Jan 6, 2011, at 12:43 PM, Quincey Morris wrote:

> The semantics of keys also requires them to be immutable (well, maybe that's 
> the semantics of 'isEqual:')

The immutability requirement stems from needing to guarantee that keys in a 
dictionary are unique. If a key was mutable, it could be changed after a 
key-value pair was added to a dictionary, and if the new value of the key was 
"equal" to the value of another key, you'd have a borked dictionary.

_murat_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to