<div><div>I have some test data where occasionally an empty list appears as an</div><div>element inside of some other list. It's getting compiled to the JS</div><div>string "[]" when what I need is the array literal [], in a way that seems</div>
<div>inconsistent.</div><div><br></div><div>Specifically, these are good:</div><div><br></div><div> PS> (ps [])</div><div> "[];"</div><div> </div><div> PS> (ps '())</div><div> "[];"</div>
<div> </div><div> PS> (ps '(1 2))</div><div> "[1, 2];"</div><div> </div><div>But these are not, because they generate either the string '[]' or null as the</div><div>second element, when what I need is the array literal []:</div>
<div><br></div><div> PS> (ps '(1 []))</div><div> "[1, '[]'];"</div><div> </div><div> PS> (ps '(1 ()))</div><div> "[1, null];"</div><div> </div><div>Is this an inconsistency? Is there a workaround?</div>
<div><br></div><div>Daniel</div></div><div><br></div><div><br></div>