+ 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?
4 Respostas
+ 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
+ 6
Sounds like you haven't looked into snake case naming convention.
+ 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.
+ 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. 😂😂😂