Hacker News new | ask | show | jobs
by jeswin 5003 days ago
I think he missed mentioning the new lambda syntax. Hope it's still in ES6.

Also, my pet peeve: there is no language that needs await/defer as much as JS.

EDIT: Maybe it could be done with macros, which is on its way.

2 comments

> there is no language that needs await/defer as much as JS.

http://wiki.ecmascript.org/doku.php?id=harmony:generators

is a more general abstraction, which allows expressing async/await-type constructs: http://taskjs.org/

I skipped arrow function syntax (=> only in ES6). It was a bit much and I wanted to focus on APIs and compilation.