[Goodies-dev] // One-Line Comments

Kok, Auke sofar at foo-projects.org
Tue Dec 30 20:24:52 CET 2008


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...

Of course, if you're a goodie maintainer yourself and you prefer to use this code
style, nobody is going to prevent you from doing so.

If you're starting a new goodie project however, then I would suggest that you
don't do this, and try to keep code style like the rest of the Xfce code. I
realize that there are some differences in coding style in Xfce, but using C++
style comments isn't common as far as I can see.

Cheers,

Auke



More information about the Goodies-dev mailing list