Re: C99

Doug Evans <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CADPb22TzFy=V7kkkTgO3szjbFPYHdpnkcOaF5XeY7BroucX7YQ@mail.gmail.com>
On Tue, Jul 16, 2013 at 8:48 PM, Eli Zaretskii <[email protected]> wrote:
>> From: Tom Tromey <[email protected]>
>> Date: Tue, 16 Jul 2013 14:51:36 -0600
>>
>> So, I'd like to propose we allow the use of C99 in gdb.  In particular I
>> think we ought to require a C99 preprocessor -- enabling this particular
>> patch to go in and also allowing the use of "//" comments.
>
> I can understand the C99 requirement (although many GNU projects still
> don't) where it allows better programming practices.  But the //
> comment style doesn't make anything easier or more efficient, it's
> just different.

Well, yes and no.

It can be what some contributors are used to.  Saying // is not
allowed is another quirky imposition one has to remember.  To me, it
doesn't get in the way of reading code the way other differences can
(indentation, SymbolSpellingStyle, etc.).  Note that we're already
using // in code:  While it's in /* ... */ comments in, e.g. queue.h
and gnulib's string.h, for obvious simplicity reasons the code in the
comments isn't less readable.  Plus if we import code from elsewhere
we don't want to be in the business of changing // to /**/.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.