lua-users home
lua-l archive

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

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.