<div dir="ltr">PS' implementation of &optional function arguments breaks because of JS's weird short-circuiting. For example,<br><br>(ps (defun blah (&optional (x 0))<br> (return x)))<br>=> "function blah(x) { x = undefined === x && 0 || x; return x; };"<br>
<br>With this implementation, blah() is undefined when it should return 0.<br><br>A patch is below.<br><br>Daniel<br><br><br>hunk ./src/special-forms.lisp 268<br>- `(setf ,place (or (and (=== undefined ,place) ,value)<br>
- ,place)))<br>+ `(setf ,place (if (=== ,place undefined) ,value ,place)))<br><br></div>