[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Request For Comments: 3-space indentation style
- From: Choonster TheMage <choonster.2010@...>
- Date: Sun, 5 Jan 2014 20:33:01 +1100
On 5 January 2014 10:52, immerrr again <immerrr+lua@gmail.com> wrote:
> 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
>
Personally, I've always used tabs set to four spaces for my Lua code.
This is probably because it's the default setting in Notepad++ (the
first programming editor I used).