line comments vs. //)
JRCooper at MIT-MULTICS.ARPA
JRCooper at MIT-MULTICS.ARPA
Sat Dec 1 07:33:01 AEST 1984
Aren't we forgetting one small disadvantage to having line comments at
all? Here is an example of common commenting practice:
main()
{
int arg1,arg2;
foo_func(arg1 /* comment */, arg2 /* , arg3 */);
}
If I need to explain what a particular argument in a list is or what it
is for, or what it's possible values might be, I would want to be able
imbed the comment. Let's say my foo_func doesn't accept a third
argument yet but I want to show that it will. Witness the arg3 comment.
If all we have are line comments, what do we do then?
-John-
More information about the Comp.lang.c
mailing list