MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/4s4ul0/the_javascript_language_reboot_is_done/d56zotr/?context=3
r/javascript • u/velmu3k • Jul 10 '16
98 comments sorted by
View all comments
29
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.
10
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.
7
...
new Promise(function(resolve, reject) { resolve(); }) .then(function() { console.log('hello'); });
There are two anonymous functions and two callbacks in use here.
29
u/[deleted] Jul 10 '16
Callbacks obsolete? Seems premature to say so.