This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using C++ in GCC is OK
Hi,
On Tue, 1 Jun 2010, Ian Lance Taylor wrote:
> >> > * Use C-style comments for multi-line comments, and C++-style comments
> >> > for single-line comments.
> >>
> >> I'm not sure i agree with this, because I don't see anything wrong
> >> with multi-line C++-style comments.
> >
> > It assumes your editor can do block-reformatting while preserving the
> > comment syntax. I've had too many // cases of Emacs guessing wrong //
> > and putting // throughout a reformatted // block.
>
> I don't see why the coding standard should prohibit using a good
> editor,
Rather they should not prohibit the use of "non-good" editors.
> but I'm willing to hear what other people think.
I always liked the GNU coding standard for comments, to not put the
comment leader onto each line (a '*' in C comments), for specifically the
reason of easier formatting with random editors. Allowing multi-line C++
comments would reintroduce this awkwardness that I dislike in some other
projects.
Ciao,
Michael.