r/programming • • Apr 26 '16

Node.js v6.0 released

https://nodejs.org/en/blog/announcements/v6-release/
132 Upvotes

79 comments sorted by

View all comments

7

u/[deleted] Apr 27 '16

I want async/await, bro. And no, I'm not compiling node with microsoft's js engine just to get that.

4

u/simspelaaja Apr 27 '16

The TypeScript compiler already supports them, by emulating them using ES6 generators and promises.

1

u/newreddit0r Apr 27 '16

Isn't async/await actually just a syntactic sugar on top of the generators and promises?

1

u/simspelaaja Apr 27 '16

It is, even in C#. But ES7 might support it as a first-class feature.

1

u/vivainio Apr 27 '16

C# creates a switch-case state machine within functions to support async/await