News for hackers. Stuff that matters.
Re:Google C++ Style Guide by jparise on Sunday February 20, 2011 @03:20PM (#2242901)
We used that C++ constant naming convention at EA, too. I like it because it nicely differentiates C++ typed constants from preprocessor constants and macros (which we SPELLED_THUSLY).
Re:Google C++ Style Guide by _delirium on Monday February 21, 2011 @09:35AM (#2245517)
Yeah, it appears it's actually quite common, and I must be one of the last people to be surprised by it. =] I've never been part of a major multi-person C++ project, though, so my stylistic conventions are a mixture of C conventions and the conventions used in the STL. I tend to SPELL_THUSLY even C++ typed constants, though I have also seen them PascalCased (but then, unless context makes it sufficiently clear, they can look like class names).