|
|
|
|
|
by z3t4
2227 days ago
|
|
This article made me angry then I first read it, and now it makes my blood boil. First off there where no colors in JavaScript pre ES6, there where only functions. You can call them first class functions, but those are still functions. A callback is just a function! Then we have side effects, but executing the side effect while returning a promise like in ES6 you are still executing the side effect, even if yo do not call .then() so nothing really changes. So first you think there is a problem, but there are not any, but by solving the imagined problem you do actually create it.
You now have generator functions and "async" (with the async keyword) functions that always returns a promise, and normal functions. |
|