3 ms·
> The language's standard library will expose names using the language's convention Looking at you, C++ STL. Almost nobody names structs/classes all lowercase.
by lpribis 2y ago
> The language's standard library will expose names using the language's convention
Looking at you, C++ STL. Almost nobody names structs/classes all lowercase. This leads to silly style guidelines eg. in the Google c++ style guide:
- Name classes PascalCase (even if it's templated)
- Except if your class happens to be a templated container type, in which case name it all lowercase.
- shrimp_emoji 2y agoThat is silly. I think C++ went with lowercase because they expected namespaces to disambiguate everything. The last bullet makes it seem like it's because stuff is templated.