|
|
|
|
|
by corysama
5381 days ago
|
|
IIRC, the original plan for Node involved coroutines (maybe even Lua?). But, they were scrapped because they introduced a lot of the same problems as full threading. You never know if the state of the world is going to change in ways unrelated to the function you are about to call because some deep-nested subroutine might yield. |
|
It's the same situation when using callbacks.