Search code examples
c++coding-stylelowercasestd

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


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?


Solution

  • 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.