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

5

u/[deleted] Apr 27 '16

Soon enough you'll just be able to fetch .NET/ASP Core 1.0 on your OS of choice and run Kestrel. Then you'll have the whole TPL library available to async/await your heart out.

1

u/Booty_Bumping May 02 '16

I don't think this is required. Typescript is written in pure MIT-licensed Javascript and will translate async/await syntax to generator.

If you want to stay away from Microsoft software, babel + flow is a good alternative.

-4

u/[deleted] Apr 27 '16

funny how monkey patching a language deficiency can -produce hype