News for hackers. Stuff that matters.
Re:Bling – the $ of jQuery without the jQuery by benihana on Monday June 15, 2015 @08:12AM (#9718813)
>There really is only one ASI rule you need to remember [0] in practice: don't begin a new line with ( or [ if it's intended to be a new statement.

Here's an even easier and clearer one: finish every statement with a semicolon.

Re:Bling – the $ of jQuery without the jQuery by swang on Monday June 15, 2015 @12:49PM (#9720520)

  function hello() {
    var x = 0;
    return
    {
      x: x,
      y: y
    };
  };
Just putting semicolons where you think it can work won't help you. If you write javascript, you must know what the asi does. So semicolons or no semicolons is completely irrelevant.
Re:Bling – the $ of jQuery without the jQuery by insin on Monday June 15, 2015 @08:33AM (#9718893)
This is precisely why I hate optional syntax, regardless of which way your preferences fall on this particular one.
Re:Bling – the $ of jQuery without the jQuery by bakabaka9 on Monday June 15, 2015 @11:34AM (#9719974)
Mindlessly inserting unnecessary syntax instead of learning the damn language. Hacker News should be proud of its lusers.
Re:Bling – the $ of jQuery without the jQuery by taco_emoji on Monday June 15, 2015 @12:18PM (#9720323)
I don't have a photographic memory. If "learning the language" means rote memorization of an inconsistent set of rules for how the fucking code is parsed, then you're goddamn right I'd rather mindlessly insert a character that obviates that.