On Tue, Mar 16, 2004 at 07:08:09PM -0000, Aaron Stone wrote:
> I'm a fan of GNU style, with two spaces between levels and curly braces on
> intermediary levels by themselves. All but their stupid function format.
> Nobody should have to #ifdef every single function with K&R compatibility;
> that's just dumb.
My preference is that tabs should be used for indentation at the
beginning of lines and spaces should be used for any spacing within
lines.
This allows each developer to set tabs as wide as they like in their
editor and the code always looks fine.
f(x) {
for (i = 0; i < 10; i++) {
someVar = "abc";
someOtherVar = "xyz";
i = 5;
}
}
> I'm a fan of GNU style, with two spaces between levels and curly braces on
> intermediary levels by themselves. All but their stupid function format.
> Nobody should have to #ifdef every single function with K&R compatibility;
> that's just dumb.
My preference is that tabs should be used for indentation at the
beginning of lines and spaces should be used for any spacing within
lines.
This allows each developer to set tabs as wide as they like in their
editor and the code always looks fine.
f(x) {
for (i = 0; i < 10; i++) {
someVar = "abc";
someOtherVar = "xyz";
i = 5;
}
}