practicalli / practicalli/clojure
pretty print hash-map without keyword namespaces
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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