is there a way to have qualified keys returned in the usual way rather than reader tags (if that's the correct term). I'm a bit stuck cos even when I add a conformer which explicitly re-writes hard-coded values, it still returns the keys in this format
(->> (s/conform ::bindings '[{:a/keys [x]} {:a/x 1}])
(s/unform ::bindings))
=> (#:a{:keys [x]} #:a{:x 1})perhaps https://clojuredocs.org/clojure.core/*print-namespace-maps* might help somehow?
til
I'll give it a try
Doesn't seem to make a difference ... this is in the default clj REPL
(in-ns 'clojure.core.specs.alpha)
#object[clojure.lang.Namespace 0x3d36dff4 "clojure.core.specs.alpha"]
clojure.core.specs.alpha=>
(s/conform ::bindings '[{:a/keys [x]} {:a/x 1}])
[{:form [:map-destructure #:a{:keys [x]}], :init-expr #:a{:x 1}}]
(binding [*print-namespace-maps* false]
(s/conform ::bindings '[{:a/keys [x]} {:a/x 1}]))
[{:form [:map-destructure #:a{:keys [x]}], :init-expr #:a{:x 1}}]
clojure.core.specs.alpha=> ah yes, the binding only applies to the body within, but when the expression is returned and the repl prints it we're already outside the binding. Check the note on the clojuredocs link above wrt. print-method
Yeah, fair point, though I was hoping to avoid that 🙈