This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [cxx-conversion] New Hash Table (issue6244048)
NightStrike <nightstrike@gmail.com> writes:
> You wouldn't use the GNU C Coding conventions to write in tcl, and you
> shouldn't use them to write in C++. You should just create the GNU
> C++ Coding Standards new, and not base them off of the former.
... oooor, just use some common sense, and change things which need
changing.
C++ and C are not the same, but they certainly have enough overlap
that using the existing C conventions as a starting point makes a huge
amount of sense... To just "start new" would either (1) end up
adopting many of the same rules anyway, or (2) result in a huge amount
of absolutely pointless inconsistency (where otherwise identical code
ends up looking different).
E.g., as a start, there's absolutely no reason to change most of the
indentation or spacing rules, because the C rules work totally fine
for C++ (with obvious extensions to handle new cases). You can argue
about the details ("should namespaces be indented or not?"), but most
of it is pretty obvious.
-miles
--
Egotist, n. A person of low taste, more interested in himself than in me.