lua-users home
lua-l archive

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


for the lulz.

i don't know.. it's easy for me to delete/add an element that way. just line delete or add in text editor.
since lua supports trailing commas, i think line ending with comma is okay too.

but i think everyone should start a line with comma.

On Mon, Sep 27, 2010 at 11:15 AM, Stefan Sandberg <keffo.sandberg@gmail.com> wrote:
Woah, what on earth for?

The parser in my head wants to slap someone!


On 2010-09-27 15:19, sam lee wrote:
I always start with comma:

local a = {
    1
    , some _expression_
    , {
        2
        , another _expression_
    }
}

On Mon, Sep 27, 2010 at 9:15 AM, David Kastrup <dak@gnu.org> wrote:
Philippe Lhoste <PhiLho@GMX.net> writes:

> On 27/09/2010 12:14, Jon Akhtar wrote:
>> I know that a lot of code formatting is a matter of personal taste,
>> however, I am developing a code formatter for Lua, and I am in need
>> of a "default" format to support "out of the box".
>
> Tongue in cheek suggestion: take the Lua code written by Roberto and
> Luiz (or just the samples given in Programming in Lua) and use that as
> default style guide.

Not going to be much help deciding at what column to wrap overlong
lines, is it?

--
David Kastrup