[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Some enhancements in table initializations
- From: Jonathan Castello <twisolar@...>
- Date: Tue, 21 Sep 2010 00:58:59 -0700
On Tue, Sep 21, 2010 at 12:48 AM, Benoit Germain <email@example.com> 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