Page 2 of 2

Re: Lua Style

Posted: Fri Apr 10, 2015 11:48 am
by kikito
I use two spaces. My explanation is here: viewtopic.php?f=3&t=79017&start=10#p175859 . I wrote more about tabs and spaces on that thread.

Regarding camelCasing vs under_scoring, I usually do camelCase in Lua.

Those are for my personal projects. If I am working on a team and that team has different conventions, I use those.

Re: Lua Style

Posted: Fri Apr 10, 2015 11:56 am
by s-ol
kikito wrote:I use two spaces. My explanation is here: viewtopic.php?f=3&t=79017&start=10#p175859 . I wrote more about tabs and spaces on that thread.

Regarding camelCasing vs under_scoring, I usually do camelCase in Lua.

Those are for my personal projects. If I am working on a team and that team has different conventions, I use those.
For identifiers/variable names, I go with the Ruby / Rails convetion; "Types" and whatever represents them are CamelCased and Uppercased, methods, properties etc. are snake_cased and lowercased.