[lkml]   [2001]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Coding Style
On Tue, Jan 23, 2001 at 10:07:10AM -0500, Jonathan Earle wrote:
> > /*
> > * 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. :)

and potentially no end of weird problems if you have mac users editing
your code... suddenly a compiler may ignore the rest of a file starting
at a given // or # comment, and you'll find its caused by their
different linebreaks. had this problem with php. havent seen it with C
yet. does gcc handle non-correct^H^H^H^H^H^H^Hunix linebreaks now? it
didnt when i used djgpp all those years ago.

// are nicer on the eyes, for short comments. and death to capital
// letters. and oooh, vim auto-extends // comments, thats handy isn't
// it! :-]

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:21    [W:0.049 / U:23.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site