Re: Why can't I name a property `tag'?
Re: Why can't I name a property `tag'?
- Subject: Re: Why can't I name a property `tag'?
- From: Bill Bumgarner <email@hidden>
- Date: Thu, 10 Jul 2008 16:47:01 -0700
On Jul 10, 2008, at 4:25 PM, Matt Burnett wrote:
But most of the time compound statements makes code easier to read.
Why do you think apple included valueForKeyPath instead of only
valueForKey?
The two are completely unrelated.
Key-Value Coding has all kinds of behaviors and heuristics above and
beyond simply being a short hand for invoking methods; auto-boxing,
simple expressions, accessing ivars without methods, etc...
As for compound statements, feel free to use them if you like them.
Just don't whine when you need to set a breakpoint on the nth sub-
expression or need to figure out which of the 4 chained method
invocations unexpectedly returned nil. ;)
b.bum
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden