[parenscript-devel] "let over lambda" seems buggy

Canhua dreameration at gmail.com
Thu Oct 13 05:40:50 UTC 2011


hi, all, I found that
     (create "fn" (let ((x))
                        (lambda () x)))

compiles to
     { 'fn' : (x = null, function () {
      return x;
     }) }

wherein the variable x may conflict with a variable with the same name
outside this code.
How may avoid this? How may I achieve "let over lambda" closure effect
as in common lisp?

Thanks.




More information about the parenscript-devel mailing list