Messages in this thread | | | Subject | Re: kernel guide to space (updated) | From | Miles Bader <> | Date | Mon, 01 Aug 2005 11:15:55 +0900 |
| |
Jan Engelhardt <jengelh@linux01.gwdg.de> writes: >>3i. if/else/do/while/for/switch >> space between if/else/do/while and following/preceeding >> statements/expressions, if any > > Why this? if(a) {} is not any worse than if (a).
Well it's harder to read (because it makes control constructs look more like function calls). And a bit uglier.
But anyway, coding styles are rarely about "worse" versus "better", they're about keeping things consistent so that it's easier to read code.
-Miles -- Any man who is a triangle, has thee right, when in Cartesian Space, to have angles, which when summed, come to know more, nor no less, than nine score degrees, should he so wish. [TEMPLE OV THEE LEMUR] - 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/
| |