[parenscript-devel] wrong operator priority?

Travis Cross tc at travislists.com
Sun Nov 16 15:08:29 UTC 2008


Alex Mizrahi wrote:
> this piece of parenscript:
> 
> (defun my-element-by-id (cache id)
>  (return (or (slot-value cache id)
>              (setf (slot-value cache id)
>                    (document.get-element-by-id id)))))

now returns:

function myElementById(cache, id) {
     return cache[id] || (cache[id] = document.getElementById(id));
};

Thanks for the report!

Cheers,

-- Travis




More information about the parenscript-devel mailing list