Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Add an exception to naming convention for names beginning with commonly used abbrevations #21

Closed
mpkeefe opened this issue Aug 3, 2013 · 2 comments

Comments

@mpkeefe
Copy link

mpkeefe commented Aug 3, 2013

The Naming section advises

Properties should be camel-case with the leading word being lowercase.

When it makes sense for a symbol name to begin with a commonly used abbreviation, then the abbreviation should be capitalized according to common convention. In other words, the common naming convention takes precedence.

Examples appear scattered through Apple's class references:

  • NSData *HTTPBody
  • NSURL *URL
  • const char *UTF8String
  • [UIColor RedColor].CGColor
@mbbischoff
Copy link
Contributor

Great point, we already do this but forgot to write it up.

Sent from my iPhone

On Aug 3, 2013, at 10:25 AM, Mark Paul Keefe notifications@github.com wrote:

The Naming section advises

Properties should be camel-case with the leading word being lowercase.

When it makes sense for a symbol name to begin with a commonly used abbreviation, then the abbreviation should be capitalized according to common convention. In other words, the common naming convention takes precedence.

Examples appear scattered through Apple's class references:

NSData *HTTPBody
NSURL *URL
const char *UTF8String
[UIColor RedColor].CGColor

Reply to this email directly or view it on GitHub.

@mbbischoff
Copy link
Contributor

@mpkeefe I think a PR for this would still be great idea.

@ashott ashott closed this as completed May 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants