Why does the standard C++ library use all lower case?

CuriousGeorge picture CuriousGeorge · Mar 24, 2011 · Viewed 16k times · Source

Just curious why the C++ standard library uses all lower case and underscores instead of camelCase or PascalCase naming convention.

Personally, I find the latter much easier to deal with when typing out code, but is there some kind of legitimate reason to use the former?

Answer

sgokhales picture sgokhales · Mar 24, 2011

Main reason : To keep compatibility with the existing code, since they have done it with C also.

Also have a look at these C++ Coding standards, which presents some generic reasoning regarding the importance of convention.


These links discusses about the naming conventions of C/C++ Standard Library.