clojurescript

2026-01-06T15:24:25.847629Z

In cljs, is one of these syntax conventions considered more idiomatic than the other? cljs.core/PersistentArrayMap cljs.core.PersistentArrayMap They both seem to work fine in cljs. But in jvm clojure clojure.lang/PersistentArrayMap would throw a CompilerException.

thheller 2026-01-06T15:39:43.247719Z

cljs.core/PersistentArrayMap is correct. In Clojure the collections are implement in java and there is no clojure.lang namespace, so thats why it would be incorrect there. In CLJS they are implemented in CLJS and there is an regular cljs.core namespace.

2026-01-06T15:51:47.515139Z

Thanks @thheller!