lua-users home
lua-l archive

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


> Re: prettier names.
> convention is to keep the name the same for those in the standard library
> eg: local pairs , select , tonumber , type = pairs , select , tonumber , type;
Yeah, did that.
> for those in other libraries, replace the index with a _, or remove
> the seperator altogether.
> local iopopen = io.popen OR local io_popen = io.popen
I did camelcase for library functions.
> I like to have each library on a different line (and each thing in
> alphabetical order): -- note: these ones are my personal tastes
> local pairs , select , tonumber , type = pairs , select , tonumber , type
> local tableconcat = table.concat
> local iopopen , ioopen = io.popen , io.open
Didn't really think of that, and I'm not sure if I'll do it.
> Ps, Learn to bottom post.
Heh, doing it now :P