lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sun, Jan 5, 2014 at 12:12 PM, phlnc8 <phlnc8@gmail.com> wrote:
> Let's bring some rationality here :-)
>
> 3-space indent is nice with 'if' statements because the condition is
> nicely aligned with the first statement after 'then'.

And this is where I have to contribute to the bikeshedding, because
this is exactly the reason why 3 space is BAD. :P If you align the
block of the if statement with the condition, then if your condition
linewraps it's indented at the same level as the block, ruining the
visual distinction. (Yes, you could wrap the condition at 6 spaces
then, but that just goes to show that indentation preferences are more
than just how many spaces are in a tab.)

/s/ Adam