lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Tue, Sep 28, 2010 at 01:14, steve donovan <> wrote:
> On Mon, Sep 27, 2010 at 10:58 PM, HyperHacker <> 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 ;)
> steve d.

I'd be in favour of enforcing naming conventions only if we get to
choose the conventions. Otherwise the software is forcing us to do
something we don't want.

Automatic indentation is much less likely to frustrate (indeed, I wish
my IDE supported it in Lua), but again, enforce what the user wants to
enforce, not someone else's ideas.

(It may well do me good to have an editor that enforces some of these
rules for consistency's sake, seeing how loose I tend to be with

Sent from my toaster.