11 ms·
I had the same confusion reading the article. IMO, the reall issue with callbacks is that they split your functions into two sets of uncompatible functions tha
by ufo 8y ago
I had the same confusion reading the article.
IMO, the reall issue with callbacks is that they split your functions into two sets of uncompatible functions that cannot call each other -- the "async" functions with callbacks and the "sync" functions without them.
http://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/ http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y...
async/await mitigate this a bit because although the two kinds of functions are incompatible at least the syntax is the same.
- maskedSlacker 8y agoThe two kinds of functions are also more clearly declared.