cljs-dev

dominicm 2025-11-13T10:09:17.011029Z

https://github.com/clojure/clojurescript/blob/ddf3cfe14e71b342fbe29ff858c620752ccfc4cb/src/main/clojure/cljs/instant.clj#L25-L38 why does clojurescript add a print-dup for Instant? We have our own in our project, and obviously it breaks if we load clojurescript in the wrong order with our own code. This is in Clojure, not ClojureScript.

p-himik 2025-11-13T10:11:04.220919Z

Just my 5 c - building CLJS in a completely separate process solves all such and other problems. That is, unless CLJS itself is inherently a part of your backend.

👍 1
dominicm 2025-11-13T10:11:42.151689Z

I understand, this came up from unrelated reasons.

👍 1
2025-11-20T11:05:50.386379Z

you're certainly not the first to trip up on this. as for why... I can think of no good reason

dominicm 2025-11-20T13:56:56.106279Z

I'm assuming it's just an artifact of implementation at the time. I don't know cljs well enough to know if there's a separate machinery for encoding not using print overrides.