Charlton Wilbur said:
They do if you want help from this group, for two reasons.
First, // comments were only included in the C99 standard.
And? Are you suggesting that comp.lang.c is the wrong place to
discus C99?
While they are technically standard, using them is more often
than not a sign of sloppy thinking about C
I'll bow to your expert knowledge of sloppy thinking.
and a lack of awareness of C standards,
Or a desire to change them for the better.
Contrary to what some believe, WG14 is not responsible for
ensuring that vendours rush to deliver the new standard. Long
before WG14 get involved, it's the programmers who hassle
vendours for useful features. The vendours supply them as
extensions (conforming or otherwise). WG14 get involved when
the utility of those extensions make them viable candidates
for standardising.
Of course, that is a generalisation and not everything that
WG14 introduces fits this pattern, but // style comments is
most certainly in that camp.
You can argue that not all C90 compilers will support them
and that any program that uses it will not be as portable
as others, but I for one will gladly forfeit portability to
the handful of twenty year old compilers in the Ministry
of Abaki building in central Frobnoskistan.
There may not be a present rush towards implementing C99, but
you can bet there will be greater support when C++ is updated
to include many of the new C99 features.
Portability includes looking to the future, not just what's
available now.
which is likely to reflect poorly on the programmer and irritate
the most helpful people here
Anything that is isolated to C99 irritates Richard Heathfield.
[He thinks globally, not locally. ;-]
(who care deeply about what is standard and non-standard in C).
And // comments are C99 standard. Or are you suggesting that
deeply caring about what is standard means deeply rejecting
everything in the C99 standard?
Second, they are a pain on Usenet, especially with long lines;
Bingo. There are easy substitutes though...
/*=================... =====
//
// All the advantages of // comments...
//
//=================... ===*/
if my terminal window is narrower than you expect,
That's life. Even /* */ are not immune from being too long for
some people's liking. Sometimes they're in the wrong language.
Sometimes they relate to past revisions that no longer exist.
The problems with comments are endless.