Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A summary of ECMAScript 6 features. Parent comment
You are the one who stated generators were no solution to callback hell but async/await was, yet here's what your code looks like with generators:
app.get('/thing', function* (req, res) { try { let user = yield* db.get({user: req.user}); res.send({user: user}); } catch { res.send(400); } });
There are no comments on this comment yet.
You are the one who stated generators were no solution to callback hell but async/await was, yet here's what your code looks like with generators:
...