2 ms·
Does this work when compiling code to run on the browser? If not, how could you modify the Coffeescript compiler to make that happen? (Preferably without requ
by csense 13y ago
Does this work when compiling code to run on the browser?
If not, how could you modify the Coffeescript compiler to make that happen? (Preferably without requiring browser makers to make any changes.)
- almost 13y agoIt's possible using two techniques called continuation passing transform and trampolines[1]. The downside is that the produced code would be a bit ugly and one of coffeescript's selling points has always been that it produces sensible code. [1]: http://en.m.wikipedia.org/wiki/Trampoline_(computing) http://en.m.wikipedia.org/wiki/Trampoline_(computing)