code cleanup
authorJim Pryor <profjim@jimpryor.net>
Sun, 17 Oct 2010 18:45:07 +0000 (14:45 -0400)
committerJim Pryor <profjim@jimpryor.net>
Sun, 17 Oct 2010 18:45:07 +0000 (14:45 -0400)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
code/lambda.js

index d4e3a5e..83ae7c4 100644 (file)
@@ -423,6 +423,7 @@ function reduce(expr, eta, cbv) {
         return expr.eval_cbv(cbv > 1);
     } else {
         // return expr.eval_loop([], eta);
+               // using trampoline to reduce call stack overflows
                var to_eval = expr, res = [[], eta];
                while (to_eval !== null) {
                        res = to_eval.eval_loop.apply(to_eval, res);