Live data from Hacker News

Node v7.5.0 Released

github.com

141–142 of 142 posts

Re: Node v7.5.0 Released

#141

Earlier quoted context omitted.

I don't see ES6 modules (import/export keywords etc) in that list. Where is that feature hiding?

The loader spec hasn't been completed yet so there is no way to load properly modules in es2015, es2016, or es2017 as far as I know.

But the syntax is in es2015. So that feature should be marked as NO in those tables.

Re: Node v7.5.0 Released

#142
post #56

Earlier quoted context omitted.

> it encourages a lot of callback hell we've found at my company This is a very odd comment. async provides the same level of indentation as Promises does: async.waterfall([ function(){}, function(){}, ]) Here's promises doing the same thing: function() .then(function(){}) .then(function(){}) One's a list of functions to be run in order, the other uses method chaining. You may prefer one or the other but saying async…

Yea but when using promises with async/await its very beautiful. await asyncFuncOne(); await asyncFuncTwo(); No more weird water-falling, and finally proper exception handling. The only gotcha is the fact that we cant awaits at the root of a module, and we need to wrap it in a async function.

The 250Kb extra weight to the Babel bundles (compared to the equivalent callback version) is quite frustrating though.
Post reply on HN