[parenscript-devel] Implicit return for function bodies

sblist at me.com sblist at me.com
Mon Nov 23 21:51:06 UTC 2009


Hi Vladimir,

On 2009-11-22, at 12:27 AM, Vladimir Sedach wrote:

> I've just pushed a patch that should address all the issues raised so
> far in this thread. Thank you for the QA Scott!

Thanks Vladimir! One thing I've found in the latest
commit is that using SYMBOL-MACROLET in a function 
tail position seems to thwart implicit return:

JS> (ps (lambda () (loop do (+ 2 2))))
"function () {
    for (; true; ) {
        2 + 2;
    };
    return null;
};"

JS> (ps (lambda ()
          (symbol-macrolet ((x 2))
            (loop do (+ x x)))))
"function () {
    return (for (; true; ) {
        2 + 2;
    }, null);
};"
JS> 


Regards,

- Scott





More information about the parenscript-devel mailing list