[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Code Formatting Guidelines
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 28 Sep 2010 09:14:33 +0200
On Mon, Sep 27, 2010 at 10:58 PM, HyperHacker <firstname.lastname@example.org> wrote:
> As you can see I don't follow all of these rules strictly and there is probably
> lots of room for improvement. Just thought I'd throw my own preferences into the
> pool. More data is generally a good thing.
Consistency is something that we admire and don't always achieve...
But how 'prescriptive' should a code formatter be, to enforce a
desired style? How intelligent does it have to be? We depend on our
visual sense of layout, but computers are notoriously bad at seeing
things like humans.
Should it enforce naming rules (like CamelCase, functions_like_this, etc) ?
For a fair amount of the code out there, just having something that
properly _indents_ it would be a big step forward!
I've done experiments with SciTE and auto-indentation. The issue is
that the autopilot argues with the captain ;)