Skip to content

fix(stdlib): pprint writes collection metadata, doc prints a special form once - #169

Merged
skydread1 merged 2 commits into
developfrom
fix/pprint-meta-and-repl-doc
Sep 2, 2026
Merged

fix(stdlib): pprint writes collection metadata, doc prints a special form once#169
skydread1 merged 2 commits into
developfrom
fix/pprint-meta-and-repl-doc

Conversation

@skydread1

@skydread1 skydread1 commented Sep 2, 2026

Copy link
Copy Markdown
Member

Closes #166, Closes #167

  • pprint-meta writes ^{...} before a list, vector, map or set when *print-meta* is true, so a pretty-printed value carries its metadata like pr does. pprint-set becomes a defn rather than a formatter-out closure so it can call it.
  • print-doc moves the "Please see" block out of the special-form cond arm into its own when, so the arm no longer prints the docstring that the (when doc ...) below it already prints.

…form once (#166, #167)

pprint-meta writes ^{...} before a list, vector, map or set when
*print-meta* is true, and pprint-set becomes a defn so it can call it.

print-doc moves the "Please see" block out of the special-form cond arm
into its own when, so the arm no longer prints the docstring that the
(when doc ...) below it already prints.
@skydread1 skydread1 self-assigned this Sep 2, 2026
@skydread1
skydread1 merged commit 940d4ce into develop Sep 2, 2026
1 check passed
@skydread1
skydread1 deleted the fix/pprint-meta-and-repl-doc branch September 2, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clojure.repl/doc prints a special form's docstring twice clojure.pprint ignores *print-meta*

1 participant