Should I capitalize my constants?

Posted by Tim Merrifield on Stack Overflow See other posts from Stack Overflow or by Tim Merrifield
Published on 2008-11-19T22:23:53Z Indexed on 2010/04/04 5:33 UTC
Read the original article Hit count: 338

What do you guys think? Should constants be capitalized? Or is that an archaic practice? So...

const int MY_CONSTANT = 5;

vs.

const int myConstant = 5;

© Stack Overflow or respective owner

Related posts about language-agnostic

Related posts about coding-style