3 ms·
Do you have any pointers to information as to why it’s considered the Google style guide is considered to be a bad thing?
by vamega 6y ago
Do you have any pointers to information as to why it’s considered the Google style guide is considered to be a bad thing?
- pjmlp 6y agoMany of the rules that are considered best practices in Tour of C++ or C++ Core Guidelines are no go for Google.
- zabzonk 6y agohttps://news.ycombinator.com/item?id=18555771 https://news.ycombinator.com/item?id=18555771
- gumby 6y agoIt's the style guide for Google's specific environment. If you are not Google, much of it is likely irrelevant. For example, the style guide says that C++ exceptions are the way to go...except that by the time the guide was written there was already too much existing code that wasn't exception safe. Therefore the guide says that regretfully, exceptions cannot be used. Edit: clarification
- zabzonk 6y agoAnd this is why the guide is "bad" - you simply can't avoid dealing with exceptions in C++ code, unless you also forgo the Standard Library, use weird and unreliable methods to detect constructor failures, and a bevy of other problems.