cursive

kenny 2025-04-27T22:33:19.204859Z

What’s the latest way to automatically set print-namespaced-maps to false in your REPL?

kenny 2025-04-27T22:34:04.095139Z

Doing a set in user.clj e.g.,,

(set! *print-namespace-maps* false)
throws on repl startup:
Exception in thread "main" Syntax error macroexpanding at (user.clj:4:1).
	at clojure.lang.Compiler.load(Compiler.java:8177)
	at clojure.lang.RT.loadResourceScript(RT.java:401)
	at clojure.lang.RT.loadResourceScript(RT.java:388)
	at clojure.lang.RT.maybeLoadResourceScript(RT.java:384)
	at clojure.lang.RT.doInit(RT.java:506)
	at clojure.lang.RT.init(RT.java:487)
	at clojure.main.main(main.java:38)
Caused by: java.lang.IllegalStateException: Can't change/establish root binding of: *print-namespace-maps* with set

cfleming 2025-04-28T01:12:15.942179Z

user.clj doesn't work, because it's evaluated too early in the REPL lifecycle, before the dynamic var is set up. I'm planning to add a space in the REPL config to have some forms that will be sent to the REPL after initialisation, I'll try to do that in the next release.

❤️ 1
kenny 2025-04-28T01:16:30.709989Z

Excellent!