lua-users home
lua-l archive

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


On 10.10.2016 22:06, Rena wrote:

but IMO this is a stylistic choice, and I usually prefer the former, as it prevents mistakes like:


It is almost always preferable, unless you need to store your source code on a floppy disk. If you do the same thing, do it the same way.
Just try to write a code generator an you will see that having a special case for one line 'then' or 'else' statements is simply not a good idea.

It's also against MISRA C rule 15.6.
--
Thomas