lua-users home
lua-l archive

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


Hi

The 2 primary rules for indentation that I use are
1 follow whatever the style is that already exists as
2 always indent the same way

This reduces the amount of interpretation and thinking needed by the next person to read the code 

So I would always indent as:

> if condition then 
>    call_my_routine()
> else 
>    return
> end

And, as was suggested, I'd probably recast as

if ~condition then
    return
end
call_my_routine()

Frank