comment style

Alan J Rosenthal flaps at dgp.toronto.edu
Thu Jan 10 09:33:25 AEST 1991


Sigh, it is not the case that `//' commenting would always require fewer
characters.  Consider the following (blecherous) style:

/*
Once upon a time, in a land far away,
there was a C compiler.  This compiler
compiled many programs and had many
happy users.
*/

Compare that to this:

// Once upon a time, in a land far away,
// there was a C compiler.  This compiler
// compiled many programs and had many
// happy users.

I count 6 extra characters in the first case, including newlines,
and 12 in the second.

ajr



More information about the Comp.std.c mailing list