All notable changes to this project will be documented in this file.
Improve printing of Java arrays.
pp now prints Java arrays like clojure.pprint, but without commas:
user=> (clojure.pprint/pprint (char-array [\c \p \p]))
[\c, \p, \p]
user=> (me.flowthing.pp/pprint (char-array [\p \p]))
[\p \p]
Improve performance (by avoiding boxed math)
Fix metadata printing #8
Metadata printing worked correctly only in very small, elementary cases. It should now work better across the board.
Fix map entry printing when the key is longer than the val
Prior to this change, pp did this:
user=> (pp/pprint {{:a 1, :b 2, :c 3} {:d 4}} {:max-width 16})
{{:a 1,
:b 2,
:c 3} {:d 4}}
After this change, pp does this:
user=> (pp/pprint {{:a 1, :b 2, :c 3} {:d 4}} {:max-width 16})
{{:a 1,
:b 2,
:c 3}
{:d 4}}
clojure.lang.MapEntry) like vectors everywhere except within maps #6Print top-level map entries (clojure.lang.MapEntry) like vectors #5
Prior to this change, pp printed top-level map entries without delimiters:
user=> (pp/pprint (clojure.lang.MapEntry. :a :b))
:a :b
nil
After:
user=> (pp/pprint (clojure.lang.MapEntry. :a :b))
[:a :b]
nil
Add ClojureScript support
Add explicit (unit tested) Babashka support
Add :map-entry-separator option
The :map-entry-separator option lets you tell pp not to print
commas. For example:
user=> (pp/pprint {:a 1 :b 2} {:map-entry-separator ""})
{:a 1 :b 2}
nil
Fix *flush-on-newline* behavior
If *flush-on-newline is set to true (the default), like clojure.pprint, pp now only flushes after pretty-printing the entire form, instead of flushing after every newline.
Fix reader macro edge case
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |