|
|
|
|
|
by coldtea
4856 days ago
|
|
>They're just continuations, seriously, what's everyone's problem? That they're badly made continuations, without support from the language. >If you feel like your code is nesting too deep, you define the function elsewhere and just reference it by name. Then you don't get access to the current scope. At the cost of moving stuff out of where it's invoked, so making code harder to read. The problem with callback hell is that is pushes the programmer to write FOR the machine, in the way the machine likes it. Those things should be an implementation detail, and in good languages, are. |
|