Re: Can a subclass of NSDictionary do this?
Re: Can a subclass of NSDictionary do this?
- Subject: Re: Can a subclass of NSDictionary do this?
- From: James Quick <email@hidden>
- Date: Thu, 24 Jul 2003 16:48:26 -0400
On Wednesday, July 23, 2003, at 01:36 PM, Marco Scheurer wrote:
And IMHO, using key paths of length > 1 is usually not such a good
idea. Of course it's handy, but it breaks encapsulation. Better to ask
directly valueForKey "c" and let the receiver figure out how to get > it.
Could you elaborate? It would seem to me that an abbreviated key would
obfuscate the
intention of the original writer. He's obviously intending his lookup
to produce a result.
What benefit offsets the cost of maintaining code that less clearly
states its purpose to the reader?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.