Re: name that method!
Re: name that method!
- Subject: Re: name that method!
- From: Stig Brautaset <email@hidden>
- Date: Fri, 28 Sep 2007 22:53:55 +0100
On 28 Sep 2007, at 21:31, Andy Lee wrote:
On Sep 28, 2007, at 1:28 PM, Guy English wrote:
JSONRepresentation
I'll add another vote for this one. There are lots of precedents
for "xxxRepresentation" methods throughout Cocoa. I think the
uppercase "JSON" looks funny for a method name, but it's consistent
with how acronyms at the beginning are capitalized elsewhere.
Thanks to everyone for the help! I'm going to go with
JSONRepresentation. (Though I'm also fond of Jason.)
The decoding method, on NSString, is currently called -
objectFromJSON. Should I go for the slightly longer -
objectFromJSONRepresentation to match the encoding method?
Stig
--
http://code.brautaset.org
http://blog.brautaset.org
_______________________________________________
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