MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4gkgdv/nodejs_v60_released/d2ixc7a/?context=3
r/programming • u/Bieb • Apr 26 '16
79 comments sorted by
View all comments
7
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
4
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
1
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
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
C# creates a switch-case state machine within functions to support async/await
5
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.
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
funny how monkey patching a language deficiency can -produce hype
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.