practicalli / practicalli/clojure

pretty print hash-map without keyword namespaces

Open
#101 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
117
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Given a map

 :a/c "hi"
 :a/d "hi"}```

Pretty print the result by default look as follows
{:a/b "hi"
 :a/c "hi"
 :a/d "hi"}

pprint the map without the namespace on the key

#:a{:b "hi"
:c "hi"
:d "hi"}

Bind print-namespace-maps to false

https://clojuredocs.org/clojure.core/*print-namespace-maps*
controls whether the printer will print
namespace map literal syntax. It defaults to false, but the REPL binds
to true.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the map-printing behavior in the project’s Clojure REPL and inspect how the REPL binds print-namespace-maps. Trace where that binding is configured; the work is done when pprint displays namespaced keys using namespace map literal syntax by default, with tests or a documented reproduction confirming the output.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.