cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Sam Ritchie 2020-08-23T16:02:17.008900Z

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:

Sam Ritchie 2020-08-23T16:02:27.009200Z

;; implementation
(write-all writer "#sicm/frac " (str x))
(rationalize 1 10)
;; => #sicm/frac(/ 1 10)

Sam Ritchie 2020-08-23T16:02:34.009400Z

pr-str does the right thing:

(pr-str (rationalize 1 10))
=> "#sicm/frac (/ 1 10)"

Sam Ritchie 2020-08-23T16:03:08.010100Z

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?

Sam Ritchie 2020-08-23T16:03:33.010500Z

this is with:

;; CIDER 0.25.0snapshot (package: 20200521.627), nREPL 0.7.0
;; Clojure 1.10.1, Java 1.8.0_221