Hey all - in CLJS, I've implemented `IPrintWithWriter` for a js type called `Fraction`, and for some reason the repl, when printing, refuses to show a space:
;; implementation
(write-all writer "#sicm/frac " (str x))
(rationalize 1 10)
;; => #sicm/frac(/ 1 10)
pr-str
does the right thing:
(pr-str (rationalize 1 10))
=> "#sicm/frac (/ 1 10)"
any escaped characters like `\"` cause it to stop printing. I was trying to get the repl output to match pr-str
and print #sicm/frac (/ 1 10)
, with a space... any thoughts on what I'm doing wrong here?
this is with:
;; CIDER 0.25.0snapshot (package: 20200521.627), nREPL 0.7.0
;; Clojure 1.10.1, Java 1.8.0_221