Re: [dev] c++-style comments [was fsbm]

From: Sylvain BERTRAND <sylware_AT_legeek.net>
Date: Thu, 6 Nov 2014 16:38:20 +0100

On Thu, Nov 06, 2014 at 10:28:51AM -0500, Bobby Powers wrote:
> Hello,
>
> Hiltjo Posthuma wrote:
> > - Don't use C++ style comments (//).
>
> I personally find C++ style comments more pleasant on the eyes for
> single-line comments, and they are part of the C99 spec.
>
> Can someone explain why they think /* */ sucks less than // ? It
> doesn't seem like it is for compatibility when st and dwm require C99
> anyway. An internet search did not turn up much, apologies if I've
> missed an obvious link or previous discussion.

I'm external to the project, but here is my guess: cosmestic part of coding
guidelines for that project.

On a personnal level, I port some of my C99 projects back to C89, since it
seems a C89 compiler is easier to write than a C99 compiler, and some part of
my code could go in C89 only project (i.e. the linux kernel).

My 2c.

-- 
Sylvain
Received on Thu Nov 06 2014 - 16:38:20 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 06 2014 - 16:48:08 CET