3 ms·
That's more a property of arrow functions than of promises, though, isn't it? We could expect any promise-equivalent to look OK with arrows, too. Callbacks are
by jessaustin 12y ago
That's more a property of arrow functions than of promises, though, isn't it? We could expect any promise-equivalent to look OK with arrows, too. Callbacks are certainly more palatable in coffeescript, for example.
- the8472 12y agoWell yes, arrow functions are the magic ingredient. But the point is that with them you can express custom control flows trough custom functions instead of built-in syntax without much of a loss of readability. So we don't necessarily have to wait for ES7. We already have alternatives. Some people have also built async from generators (yield) + promises. So that's another ES6 alternative.