3 ms·
Interesting how this document focuses on formatting and naming, whereas their C++ style is full of stuff like "don't use exceptions" or "avoid doing too much wo
by blt 13y ago
Interesting how this document focuses on formatting and naming, whereas their C++ style is full of stuff like "don't use exceptions" or "avoid doing too much work in the constructor." I guess Java guides you into a uniform coding style much more than C++.
- vinkelhake 13y agoC++ is a sprawling language that lends itself to many different coding styles. It's also a language with many pitfalls. The guide both encourages a common style so that things look uniform and a style that tries to avoid pitfalls. That said, the C++ guide has a bunch of peculiar quirks.
- plorkyeran 13y agoA large part of the C++ style guide is basically "don't take advantage of any features Java doesn't have", which obviously doesn't apply to a Java style guide.