Re: Reserved method prefixes in Cocoa. Is there a reference list?
Re: Reserved method prefixes in Cocoa. Is there a reference list?
- Subject: Re: Reserved method prefixes in Cocoa. Is there a reference list?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 29 May 2013 11:46:13 -0700
On Wed, May 29, 2013, at 11:28 AM, Jens Alfke wrote:
>
> There aren’t any forbidden prefixes that I know of, but there are ones
> that should be used only for particular purposes, because the compiler
> and/or runtime will make assumptions about them when they see that
> prefix.
Apple selfishly reserves the underscore prefix for its own private
methods, and even goes so far as to suggest prefixing your own methods
with ugly unique prefixes:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingMethods.html
Because clearly we don't need namespaces in a modern object oriented
programming language.
--Kyle Sluder
_______________________________________________
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