Open sirinsidiator opened 9 years ago
Agreed: no superfluous parentheses ;)
Pretty please:
local a, b = 1 + foo(3, "apples")
My suggestion is to follow the conventions ZOS used. There are some variants in there, but generally speaking it all looks pretty consistent.
CamelCase
for public functions and methods, camelCase
for local variables.SCREAMING_SNAKE_CASE
for constants.then
, do
, function()
, etc.Also, Tabs are Evil, but they use 4-space tabs.
Thanks to your link I moved away from tabs.
Just noticed that I used if with parentheses when the rest of the code actually does not use them and thought it might be good to write some stuff down and put it into a wiki page.
First two points:
Any other ideas?