zprint icon indicating copy to clipboard operation
zprint copied to clipboard

Different output of tagged literals in library vs shell

Open albertzak opened this issue 9 months ago • 4 comments

(zp/zprint-str 
  [{:a :b :c :d} (tagged-literal 'x {:e :f :g :h})]
  {:map {:comma? false}})
"[{:a :b :c :d} #x {:e :f, :g :h}]"

Expected the comma between :e :f, :g :h to not be there. Reproduced in cljs and babashka with zprint v1.2.9. Interestingly it prints as expected via bb zprint

echo "[{:a :b :c :d} #x {:e :f :g :h}]" | bb zprint "{:map {:comma? false}}"
[{:a :b :c :d} #x {:e :f :g :h}]

albertzak avatar May 28 '24 20:05 albertzak