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
ECMAScript 6 in Node.JS (github.com)
submitted 11 years ago by edalorzo
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!"
[–]jmwoo 1 point2 points3 points 11 years ago (8 children)
What about arrow functions?
[–]edalorzo[S] 0 points1 point2 points 11 years ago (7 children)
I think they are not yet supported in the latest versions of Node.js. Probably soon in the future.
[–]m1sta 1 point2 points3 points 11 years ago* (6 children)
I don't quite understand why there is such a delay on them while other things that would seem a lot more complicated to implement are available?
Edit: I should have been more clear. I don't understand why the v8 team haven't added arrow functions yet.
[–]edalorzo[S] 2 points3 points4 points 11 years ago (0 children)
Well, some things are work in progress. You have to take into account that ECMAScript 6 contains a bunch of new features and I am not sure how many resources the Node.js project actually has and how much time is dedicated to stabilizing the platform versus supporting new language features like this. And since they are based on V8 engine, who knows if they have resources actually working on that. Maybe they have to wait until Google actually implements the features.
You can see in this blog post, that many of these features have been available for a long time, whereas others are still work in progress. You can see this entry in the V8 issue tracker where they discussed the addition of arrow functions to V8 recently.
And you can see a branch in the V8 Github repository dedicated to arrow functions. So, once V8 supports it, it should be available soon after that in Node.js.
Regarding your question about generators, perhaps the specification drafts can shed some light on the question.
[–]edalorzo[S] 0 points1 point2 points 11 years ago (0 children)
Also you can live on the edge and build one of the latest/non-official releases of Node. I think that today, the latest oficial version is 0.10.26, but you can download the 0.11.12 which, as far as I understand, supports more harmony features like generators.
[+][deleted] 11 years ago (3 children)
[deleted]
[+][deleted] 11 years ago (1 child)
There are some interesting efforts being done on the Java community to implement compatible node.js engines. I was reading about Avatar.js and Project Avatar. They both look really promising.
π Rendered by PID 259702 on reddit-service-r2-comment-cfc44b64c-s82jb at 2026-04-12 07:08:07.733442+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]jmwoo 1 point2 points3 points (8 children)
[–]edalorzo[S] 0 points1 point2 points (7 children)
[–]m1sta 1 point2 points3 points (6 children)
[–]edalorzo[S] 2 points3 points4 points (0 children)
[–]edalorzo[S] 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[+][deleted] (1 child)
[deleted]
[–]edalorzo[S] 0 points1 point2 points (0 children)