News for hackers. Stuff that matters.
Re:Better Promises in JavaScript by monsieurbanana on Monday September 24, 2018 @12:06PM (#18058840)
Awaiting an array of promises looks neat, but it has a (small?) caveat: you can't do the same for the non-await version. You can't do `[...].then()`.

I'm less fan of the second proposition. Imagine someone seeing that snippet on internet and copying it: he would have no way of knowing that ".text()" is actually a promise and could potentially be making more I/O calls than he thought.

There are no comments on this comment yet.