|
Hi all
Emacs mode for Lua [1] has been proposing 3-space indentation as
default for its new users for ages, but at some point I've started
receiving rather regular requests (here's a public example: [2]) to
change this to 2 (according to "canonical" style used in Lua-related
books [2]) or at least 4 (to match other languages' conventions).
So, it'd be nice to collect some opinions/statistics about indentation
offsets that are currently used community-wide. Admittedly, I haven't
programmed in Lua for quite a while.
Aside from that, does anyone remember the origin of this 3-space
indentation convention? I tried to trace it recently but the only
relevant responses I found were smth like "three spaces is Lua code
style, don't ask why".
Cheers,
immerrr
1. https://github.com/immerrr/lua-mode/
2. https://github.com/immerrr/lua-mode/issues/56
3. http://lua-users.org/wiki/LuaStyleGuide