basilisp icon indicating copy to clipboard operation
basilisp copied to clipboard

Reconcile print-str values with str and repr values

Open chrisrink10 opened this issue 2 years ago • 0 comments

In Clojure, (print-str #uuid "...") produces #uuid "..." but in Basilisp print-str is tied directly to str (which in Clojure simply returns the string part of the UUID).

I'm not sure which one is right, but it feels a little inconsistent on the Clojure side. For now, I'm erring on the side of preferring for str to return only the string portion of the UUID and have print-str be slightly wrong.

Maybe at some point, we can deep dive on whether Clojure is in error or if Basilisp should just try harder to match the Clojure side regardless.

Discovered working on #672

chrisrink10 avatar Aug 11 '22 00:08 chrisrink10