[parenscript-devel] Syntax error assigning compound expression in object literal

Daniel Gackle danielgackle at gmail.com
Wed Jan 19 05:45:14 UTC 2011


The generated JS is invalid here, somewhat unexpectedly (I suppose
parentheses are required):

(defun foo (obj)
  (create :abc (let ((x (gethash "blah" obj)))
                 (if x 123 456))))

=>

function foo(obj) {
    var x;
    return { 'abc' : x = obj['blah'], x ? 123 : 456 };
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20110118/26175449/attachment.html>


More information about the parenscript-devel mailing list