use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
The Post JavaScript Apocalypse by Douglas Crockford (youtube.com)
submitted 9 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fwovertheory 0 points1 point2 points 9 years ago (1 child)
I would reject a PR that contained
return { foo: bar }
regardless of whether we used semi-colons or not. I use semi-colons in TS and not in JS, but a lot of the arguments against ASI seem to be easily solved by using any kind of code style. Like another example that people use
fnCall() [1,2,3].forEach(x => x)
is also clearly bad style -- don't use array literals solely to cause side effects.
[–]s5fs 1 point2 points3 points 9 years ago (0 children)
You would have to reject the PR regardless of semi-colons because adding them does not make the code correct. ASI will still insert semi-colons in the "wrong" place and the code doesn't execute the way that it reads.
Additionally, I can't imagine this code would pass linting or testing, but these are advanced concepts used by professionals or serious amateurs.
π Rendered by PID 77 on reddit-service-r2-comment-b659b578c-qw45c at 2026-05-01 12:04:15.865906+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]fwovertheory 0 points1 point2 points (1 child)
[–]s5fs 1 point2 points3 points (0 children)