On May 27, 2005, at 11:56 AM, Scott Ellsworth wrote:
int habitability = [testWorld valueForKey:@"atm"] + [testWorld valueForKey:@"hyd"];
This would yield some interesting results. :)
I believe I find it easier because there is just plain less to parse with a direct setter, so it is easier to recognize as a setter/getter by eye.
I like the loose, zen-like quality of KVC. In other words, I'd rather see more KVC messages per line than more total method implementations per project.
There are times when hard-coded accessors make more sense. In either case, I think it's good to wait to create accessors until the design solidifies. The reduced code is a key to Core Data's ability to quickly prototype ideas.