Re: Any good advice for naming parameters of init methods?
Re: Any good advice for naming parameters of init methods?
- Subject: Re: Any good advice for naming parameters of init methods?
- From: William Xu <email@hidden>
- Date: Fri, 11 Jul 2008 11:59:35 +0900
- Organization: the Church of Emacs
Jens Alfke <email@hidden> writes:
> With any naming convention, the possible problem is a conflict with a name in a
> superclass. Apple's Cocoa frameworks tend to use a "_" prefix for both ivars
> and private method names.
How about using "_" as postfix then? Like `this_one_'. I find google
c++ guide suggests that:
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Variable_Names
Looks good to me.
--
William
http://williamxu.net9.org
... I think I'd better go back to my DESK and toy with a few common
MISAPPREHENSIONS ...
_______________________________________________
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