2 ms·
It is a moot point - because CPS transformation is the very process of turning straight-line code into event-style code using closures for callbacks, and it is
by barrkel 15y ago
It is a moot point - because CPS transformation is the very process of turning straight-line code into event-style code using closures for callbacks, and it is mechanical. The compiler can do it, and for some languages it does it as a matter of course.
The problem with threads is that they are more general than a good implementation of events. You've got a lot more rope to hang yourself with.