>
> Now *I'm* confused. It's your code that's printing "#=(sorted-map ..."
> for me, without any call to "prefer-method" required.
>
> --Chouser
Well, you're not the only one confused. I thought the "#=(sorted-
map ..." came from boot.clj somehow, but I now realize my local REPL
pulled in user.c
I can reproduce what you did in a fresh local REPL (SVN 1075), but my
server (also at SVN 1075) doesn't do this. I'm trying to find out how
this can be. Any idea where I can find the code that generates the
"#=(sorted-map ..." printing? I've looked but can't find it in
boot.clj.
Thanks for your h
On Thu, Nov 6, 2008 at 10:01 AM, MikeM <[EMAIL PROTECTED]> wrote:
>
> I can reproduce what you did in a fresh local REPL (SVN 1075), but my
> server (also at SVN 1075) doesn't do this. I'm trying to find out how
> this can be. Any idea where I can find the code that generates the
> "#=(sorted-map
On Thu, Nov 6, 2008 at 7:53 AM, MikeM <[EMAIL PROTECTED]> wrote:
>
> But when I try to prefer this:
>
> (prefer-method print-method clojure.lang.PersistentTreeMap
> clojure.lang.IPersistentMap)
You don't need this, because PersistentTreeMap is already a more
specific type than IPersistentMap --
I would like to print sorted maps readably (otherwise my sorted maps
when printed and read back get turned into the default map), so I
tried this:
(defmethod print-method clojure.lang.PersistentTreeMap [o,
#^java.io.Writer w]
(let [eprint (fn eprint [e sep?] (do (print-method (key e) w)