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.
Lua Style
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Lua Style
When I write def I mean function.
Re: Lua Style
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.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.
Who is online
Users browsing this forum: Bing [Bot] and 3 guests