Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's a part of JS Garden I don't agree with. Leaving semi-colons only changes behaviour if your code is wrong in the first place...


How is the following code "wrong"?

  var foo = function() {
  } // parse error, semicolon expected
  test()
For completeness' sake, this example works:

  var foo = function() {
  }; // no error, parser continues
  test()




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: