sirinsidiator / ESO-LibAddonMenu

http://www.esoui.com/downloads/info7-LibAddonMenu.html
Artistic License 2.0
42 stars 20 forks source link

Coding conventions #13

Open sirinsidiator opened 9 years ago

sirinsidiator commented 9 years ago

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?

merlight commented 9 years ago

Agreed: no superfluous parentheses ;)

Pretty please:

local a, b = 1 + foo(3, "apples")
haggen commented 8 years ago

My suggestion is to follow the conventions ZOS used. There are some variants in there, but generally speaking it all looks pretty consistent.

Also, Tabs are Evil, but they use 4-space tabs.

sirinsidiator commented 8 years ago

Thanks to your link I moved away from tabs.