I noticed the JS for a function like this has changed:<div><br></div><div><div>(defun blah ()</div><div> (when (some-condition)</div><div> (foo)</div><div> (bar)</div><div> (baz)))</div></div><div><br></div><div>
It used to give this:</div><div><br></div><div><div>function blah() {</div><div> if (someCondition()) {</div><div> foo();</div><div> bar();</div><div> return baz();</div><div> };</div><div>};</div>
</div><div><br></div><div>Now it produces this:</div><div><br></div><div><div>function blah() {</div><div> return someCondition() ? (foo(), barr(), baz()) : null;</div><div>};</div></div><div><br></div><div>I think it's worth questioning whether this deviates too far from PS's</div>
<div>goal of readable JS. I can give examples from our codebase</div><div>where this approach produces very complex composite expressions</div><div>that are quite unreadable. It doesn't bother me too much, since</div>
<div>I understand what PS is doing and can always look at the source</div><div>code. But it certainly sacrifices readability/debuggability. Too far?</div><div><br></div><div>Daniel</div>