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

JavaScript automatic semicolon insertion is definitely considered to be a mistake (judging by es-discuss), but many many other languages allow newlines as statement separators without problems. It seems to be fine as long newlines are only allowed under certain circumstances within expressions, such as only in grouping constructs () [].


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

Search: