bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] Re: snprintf


From: Simon Josefsson
Subject: [Bug-gnulib] Re: snprintf
Date: Fri, 01 Oct 2004 22:12:20 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> Simon Josefsson <address@hidden> writes:
>
>> PS. These '/* Get X. */' comments feel a bit overworked...
>
> Some like them (as they make it a bit easier to remove #includes when
> they are no longer needed), but I don't (they're clutter).  If you
> don't like them either then let's get rid of them.  I installed this:

I don't know whether I like them or not, but I have started to use
that style, even elsewhere, influenced by gnulib.  The comments do
contain some useful information.

If there was a tool, that encoded the C89+POSIX knowledge, and looked
for missing #include's, and unused #include's, then I'd be more
inclined to agree the comment doesn't make sense.  But there isn't a
tool, and there could even be some unforeseen problem in creating that
tool as well.

I'd wish there were some more formal way to specify the same
information though, so the comments won't get outdated.  The compiler
doesn't warn about incorrect comments, alas.

Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]