[parenscript-devel] Function application and variable renaming
Scott Bell
scott at skysheet.com
Fri Jan 6 20:11:17 UTC 2012
PS appears not to support Lisp-1-style function application in the
presence of variable renaming:
(ps (let ((a 10))
(let ((a (lambda () 17)))
(a))))
=>
"(function () {
var a = 10;
var a1 = function () {
return 17;
};
return a();
})();"
If I use FUNCALL, or even FLET instead of LET, the correct code
is generated. There's obviously some Lisp-2 action going on in PS,
but unless I'm mistaken it seems like both forms can be supported.
Scott
More information about the parenscript-devel
mailing list