[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Style Guide ?
- From: "Pierre Chapuis" <catwell@...>
- Date: Tue, 06 Jun 2017 12:32:32 +0000
June 6, 2017 9:13 AM, "steve donovan" <steve.j.donovan@gmail.com> wrote:
> "Using four spaces or tabs will result in public flogging". Ouch!
>
> [...]
>
> Sean has it, I think: there's really not enough rationale for these
> arbitrary things. I would go with Roberto, I don't think he would flog
> anyone for using four spaces.
For what it's worth: I use four spaces. My company has its own internal
style guide which differs from Olivine Labs', I was just pointing at it
because it's kind of popular.
There is clearly not a community-wide style. I do like languages that
have one (Python, Go...) but history makes it hard to do for Lua.
I think style guide are important at company- or project- level: you
typically don't want mixed styles in your code base.
At community level I don't care about this. If we could all agree on
things that matter even when you don't look at the code (e.g. usage
of globals in modules, etc) I would be happy.
--
Pierre Chapuis