NYTimes Objective–C Style Guide
github.com
NYTimes Objective–C Style Guide
1–10 of 51 posts
Re: NYTimes Objective–C Style Guide
#2I know I have it wrong, but I always feel that the the variable is of type "pointer to type" so isnt it fairer to have the asterisk paired with the type denoting it is of the kind "pointer to type"?
Re: NYTimes Objective–C Style Guide
#3> Asterisks indicating pointers belong with the variable, i.e. NSString text not NSString text or NSString * text, except in the case of global string constants. I know I have it wrong, but I always feel that the the variable is of type "pointer to type" so isnt it fairer to have the asterisk paired with the type denoting it is of the kind "pointer to type"?
Re: NYTimes Objective–C Style Guide
#4> Asterisks indicating pointers belong with the variable, i.e. NSString text not NSString text or NSString * text, except in the case of global string constants. I know I have it wrong, but I always feel that the the variable is of type "pointer to type" so isnt it fairer to have the asterisk paired with the type denoting it is of the kind "pointer to type"?
Therefore I annoy both parties by putting a space on either side to protest the fact that everyone is wrong.
Re: NYTimes Objective–C Style Guide
#5Re: NYTimes Objective–C Style Guide
#6Re: NYTimes Objective–C Style Guide
#7> Asterisks indicating pointers belong with the variable, i.e. NSString text not NSString text or NSString * text, except in the case of global string constants. I know I have it wrong, but I always feel that the the variable is of type "pointer to type" so isnt it fairer to have the asterisk paired with the type denoting it is of the kind "pointer to type"?
int* a, b; // a is int* but b is int
Re: NYTimes Objective–C Style Guide
#8Re: NYTimes Objective–C Style Guide
#9> Asterisks indicating pointers belong with the variable, i.e. NSString text not NSString text or NSString * text, except in the case of global string constants. I know I have it wrong, but I always feel that the the variable is of type "pointer to type" so isnt it fairer to have the asterisk paired with the type denoting it is of the kind "pointer to type"?
Re: NYTimes Objective–C Style Guide
#10> Asterisks indicating pointers belong with the variable, i.e. NSString text not NSString text or NSString * text, except in the case of global string constants. I know I have it wrong, but I always feel that the the variable is of type "pointer to type" so isnt it fairer to have the asterisk paired with the type denoting it is of the kind "pointer to type"?