comment style

Brian K. W. Hook jdb at reef.cis.ufl.edu
Fri Dec 21 14:22:03 AEST 1990


I personally like the // commenting style.  Including it would not have been
a major hassle for the ANSI committee, I beleive.  It is very nice and quite
quick when it comes to commenting out only one line of code.  No going to
end of line and adding a */...that gets annoying.  for large blocks of code,
I prefer the /* */ combination, and I also prefer it for "real" comments,
ie. permanent programmer-programmer comments, not just temporarily stopping
the compilation of a routine.

By the way, // is supported by TC++ even when it is in .C compile mode only.

Brian



More information about the Comp.std.c mailing list