[Goodies-dev] // One-Line Comments

David Collins david.8.collins at gmail.com
Tue Jan 6 23:21:08 CET 2009


FYI, this is the status of gcc's implementation of C99.
http://gcc.gnu.org/c99status.html


On Tue, Jan 6, 2009 at 3:10 AM, Christian Dywan <christian at twotoasts.de>wrote:

> 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
>  _______________________________________________
> Goodies-dev mailing list
> Goodies-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/goodies-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/goodies-dev/attachments/20090107/e17b028a/attachment.html>


More information about the Goodies-dev mailing list