[lkml]   [2003]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] CodingStyle fixes for drm_agpsupport
Larry McVoy wrote:
> A few comments on why I don't like this patch:
> 1) It's a formatting only patch. That screws over people who are using
> BK for debugging, now when I double click on these changes I'll get
> to your cleanup patch, not the patch that was the last substantive
> change.

This is true, but at the same time, in Linux CodingStyle patches
culturally acceptable. I think the general logic is just "don't go
overboard; reformat a tiny fragment at a time."

> 2) "if (expr) statement;" really ought to be considered legit coding style.
> It's a one line "shorty" and it lets you see more of the code on a
> screen.
> On the other hand, the author carried things too far when they did
> if (expr) statement;
> else statement;
> that's too hard for your eyes to parse quickly IMO.

tee hee :) This is why we have Documentation/CodingStyle, for just this
type of discussion.

I actually prefer your "author carried ... too far" example, with the
reasoning: if you _must_ deviate from CodingStyle, at least don't run
the damn lines together like
if (test) foo else bar;
if (test) foo
else bar;

The alignment of the statements visually separates out the test more


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

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