Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: