lua-users home
lua-l archive

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

On Tue, Sep 21, 2010 at 12:48 AM, Benoit Germain <> wrote:
> <snip> ... maybe others have a different opinion on the subject?

Personally, I favor Ruby's approach, which I believe uses newlines as
an effective syntactic hint to determine what your intent probably
was. It has optional semicolons, which you generally need to use if
you want to squish two statements onto one line (since as mentioned,
newlines are used as hints).

In most languages I've seen, it's uncommon to put multiple stand-alone
statements on the same line. Why use a semicolon where a newline would