Thanks! I was on alpha14. In 17, setting *print-namespace-maps* did not
work for me in either `lein repl` or CIDER, but the print-method solution
did work, though only in lein repl. One step closer.
Is this feature set in stone for 1.9, or is it possible to cast a vote
somewhere on the default setting? I think it impairs readability and would
gladly vote for `false` as the default value.
Christian
tirsdag 27. juni 2017 09.16.20 UTC+2 skrev Alex Miller følgende:
>
> Works for me in the clojure.main REPL (this is with 1.9.0-alpha17):
>
> user=> {:a/b 1}
> #:a{:b 1}
> user=> (set! *print-namespace-maps* false)
> false
> user=> {:a/b 1}
> {:a/b 1}
>
> It's also possible to redefine the map printer which should work
> regardless:
>
> (defmethod print-method clojure.lang.IPersistentMap [m, ^java.io.Writer w]
> (#'clojure.core/print-meta m w)
> (#'clojure.core/print-map m #'clojure.core/pr-on w))
>
>
>
>
> On Tuesday, June 27, 2017 at 1:06:27 AM UTC-5, Christian Johansen wrote:
>>
>> Hi,
>>
>> *print-namespace-maps* disables the new namespace maps formatting in
>> Clojure 1.9. However, it does not seem to affect formatting of return
>> values in the REPL (tried both the standard REPL as well as in Emacs with
>> CIDER).
>>
>> Is it possible to completely disable this kind of formatting of maps with
>> namespaced keys? Or maybe someone knows how to do it specifically for CIDER?
>>
>> https://clojuredocs.org/clojure.core/*print-namespace-maps*
>>
>> Regards,
>> Christian
>>
>>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.