News for hackers. Stuff that matters.
Re:Dart language by perlgeek on Monday October 10, 2011 @05:14AM (#3092989)
Which languages? javascript and go are both counter examples. In Go the lexer (sic) determines where a line ends, so if you write

    if (a == b)
        && (c == d) 
it will guess a line end after the first closing paren. WTF?

Python is a totally different beast, and I wouldn't include it in the discussion, because it also uses whitespace for block grouping.

Re:Dart language by enneff on Monday October 10, 2011 @06:04PM (#3096079)
There's no guesswork involved. The carriage return implies a semicolon. The rule is very simple and obvious in use (to me, the code you posted looks wrong - and it is).

http://golang.org/doc/go_spec.html#Semicolons