News for hackers. Stuff that matters.
Re:Finally... Goto in Javascript by crux_ on Monday July 06, 2009 @05:09PM (#690463)
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.)

Re:Finally... Goto in Javascript by frodwith on Monday July 06, 2009 @05:20PM (#690478)
First class continuations in Javascript would be a godsend.
Re:Finally... Goto in Javascript by eru on Tuesday July 07, 2009 @10:40AM (#691532)
You can get them with the Continuation Monad. (But of course that needs TOC to work well.)