Ask HN: How good/bad would it be for Node.js to have C# await operator?
1 point
12 years ago
EcmaScript 6 is adding a lot of features, what would it be like to add C# await operator to JavaScript?

http://msdn.microsoft.com/en-us/library/hh156528.aspx

Is it possible? Would it be a good idea? How would new code compare to old one?

E.g. var json = await $.ajax({...});

It seems like an interesting idea, but maybe not a good one because it might require massive runtime changes.