why c++ don't follow up conventions ( like PascalCase | camelCase ) naming in STL? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

why c++ don't follow up conventions ( like PascalCase | camelCase ) naming in STL?

hello in STL you can see methods and classes like this to_string(), time_t and so more. my question is why c++ do not follow up conventions naming? conventions naming : PascalCase, camelCase. and now what i must do? 1. i must comply convention naming? 2. i must comply naming such as STL?

9th May 2018, 6:29 AM
Mohammad Jawad
4 Answers
+ 10
I see a benefit.. if you use your convention then the STL methods inside your code are more visibile, you can immediately spot them ! This improves readability
9th May 2018, 9:02 AM
AZTECCO
AZTECCO - avatar
+ 6
Sounds like you haven't looked into snake case naming convention.
9th May 2018, 7:23 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
It's a matter of preference for personal works and a guideline for industrial scale ones. You can dig through STL drafts and see their guidelines for various parts of implementation. Each and every organization (including C++ standard committee) trying to stick with their guns in order to avoid inconsistency and possible eyesore for library users.
9th May 2018, 9:20 AM
Babak
Babak - avatar
+ 1
Maybe because the developers of C++ libraries don't like those famous cases. Maybe they like to use underscore button (_) more than shift button. ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
9th May 2018, 8:45 AM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar