4 ms·
Yep. Your code ends up looking like the output of a continuation-passing transform, with every kind of sequential composition involving nested callbacks. It fee
by mjw 16y ago
Yep. Your code ends up looking like the output of a continuation-passing transform, with every kind of sequential composition involving nested callbacks. It feels quite low-level and clunky and is one of the things I like least about writing Javascript on the browser.
Another thing is, when you go async, you're essentially giving up on using the language runtime's stack for most purposes. With that, you lose some useful functionality (useful stack traces, exceptions bubbling up).
- Andi 16y agoUse Step, man