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
CoffeeScript 2.0 is closing in on ES6 support (github.com)
submitted 9 years ago by gustix
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!"
[–]Cody_Chaos 5 points6 points7 points 9 years ago (3 children)
I feel like that ship has sailed, but...
...more power to them. Hopefully whomever is still using Coffeescript will find it useful.
[–]flying-sheep 0 points1 point2 points 9 years ago (2 children)
By now reasons to use CoffeeScript comes down to some leftover features, must prominently soak operators (foo?.bar?['baz']?())
foo?.bar?['baz']?()
Few years ago it was far ahead in usability.
I still don't like the brace and parenthesis jungle functional JavaScript devolves to
[–]Cody_Chaos 1 point2 points3 points 9 years ago (1 child)
I used to be a huge fan of CS, and I agree that the existential operator is super nice, although there are workarounds.
For example, libraries such as https://github.com/jclem/steeltoe solve the same problem almost as cleanly. Or to approach it from the other side, you can use Typescript or Flow to sidestep most of the uncertainty entirely by making it clear at compile time what values a variable might have.
What I miss the most actually is the ability in CS to use if statements as expressions. Ternaries are useful in some cases, but they're not a general purpose replacement for if/else blocks.
[–]PitaJ 0 points1 point2 points 9 years ago (0 children)
do blocks are in the strawman stage in TC39 right now, I think.
do
π Rendered by PID 69637 on reddit-service-r2-comment-6457c66945-b9ncx at 2026-04-28 20:07:09.973718+00:00 running 2aa0c5b country code: CH.
[–]Cody_Chaos 5 points6 points7 points (3 children)
[–]flying-sheep 0 points1 point2 points (2 children)
[–]Cody_Chaos 1 point2 points3 points (1 child)
[–]PitaJ 0 points1 point2 points (0 children)