Why does google suggest to use trailing underscores when naming iVars in Objective-C? -


in google's objective-c style guide follow many people , google says

class member variables have trailing underscores

why? there reason doing this? found apple name ivar when beginning underscore.

heavy users of core data have noticed core data attributes cannot begin non-alpha characters. if want name ivars consistently across app , various projects, reason append, rather prepend, ivars underscore.

if you're not using core data lot, or don't have ocd tendencies towards consistency in naming conventions, whatever works best right answer.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -