[Goodies-dev] // One-Line Comments

Christian Dywan christian at twotoasts.de
Mon Jan 5 17:10:22 CET 2009


Am Mon, 5 Jan 2009 10:13:52 +0100
schrieb "Mark Trompell" <mark at foresightlinux.org>:

> On Tue, Dec 30, 2008 at 8:24 PM, Kok, Auke <sofar at foo-projects.org>
> wrote:
> > David Collins wrote:
> >> Does anyone object to one-line comments in Goodies C code?
> >> eg.   // this is a short comment
> >> (I think that gcc might have supported this since about 2001?)
> >
> > generally, '//' comments are used for c++ code, and since most of
> > the xfce code isn't c++, I would abstain from using that comment
> > style. But it really depends on what the rest of the code looks
> > like...
> 
> AFAIK // comments are part of C99

Yes they are. However there is no compiler out there that supports C99
to date. And if you choose to support only those which support that
feature, C++ style comments are still unreadable to some :)

Just my 2 pfennig,
    Christian



More information about the Goodies-dev mailing list