RE: Coding Style

From: Jonathan Earle (jearle@nortelnetworks.com)
Date: Tue Jan 23 2001 - 10:07:10 EST


> -----Original Message-----
> From: adrian
>
> On Mon, 22 Jan 2001, Mark I Manning IV wrote:
>
> > It is alot neater tho :P~
> >
> > // even for multi line comments
> > // no visual clutter over there -->
>
> /*
> * I tend to find standard C comments easier to read. They stand out,
> * especially for multiple lines (although I always try to put the :end:
> * on a separate line for clarity).
> */

I like this style for multiple line comments, but prefer the '//' for single
liners. Two less characters to type after all. :)
 
> int function(int x)
> {
> /* Bleh. Comments take up space.
> */
> function body;
> }

int function(int x) {
         // I like comments. 'Sides, what else would you use the space for?
         function body;
}

Cheers!
Jon
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jan 23 2001 - 21:00:27 EST