2 ms·
What JS really, really, really, really needs isn't TCO (well that too), but rather call/cc. Looking over a fairly large project here, a majority of the code is
by crux_ 17y ago
What JS really, really, really, really needs isn't TCO (well that too), but rather call/cc.
Looking over a fairly large project here, a majority of the code is written in CPS because of callbacks to the server or delays for user interaction.
(So far, I've avoided the need to trampoline, since my call stack isn't getting too deep yet before it unwinds on it its own. But, then again, I haven't done any cross-browser testing at all yet.)