r/javascript • • Jul 10 '16

The JavaScript language reboot is done

https://medium.com/@velmu/the-javascript-language-reboot-is-done-7bcec4be2cb6#.dy2fyy9j1
41 Upvotes

98 comments sorted by

View all comments

29

u/[deleted] Jul 10 '16

Callbacks obsolete? Seems premature to say so.

10

u/ihsw Jul 10 '16

I think it is.

Callback hell is over, promises and async/await have won.

I challenge you to find any new ES6/TypeScript projects that still use anonymous functions for asynchronous execution.

7

u/hahaNodeJS Jul 10 '16 edited Jul 10 '16

I challenge you to find any new ES6/TypeScript projects that still use anonymous functions for asynchronous execution.

...

new Promise(function(resolve, reject) { resolve(); })
.then(function() { console.log('hello'); });

There are two anonymous functions and two callbacks in use here.