Indeed and the reasoning is that tabs are for indentation, 4 spaces are
for continuation lines.
if (expr) {
statement;
statement;
if (really_long_expression && another_expression &&
one_more) {
statement;
}
}
You can do slightly better than that if you do it like this:
if (really_long_expression &&
another_expression && one_more) {
statement;
}
I try and get people to put the longer part of the expression on the
continuation line, your eyes will parse that better than the first way.
By the way, this sort of thing is a big deal around here, I spend a
lot of time getting people to do it all the same way. It's worth it.
The bottom line is "can I fix bugs in your code quickly?". Indentation
is part of understanding the code.
----- Larry McVoy lm at bitmover.com http://www.bitmover.com/lm - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/