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.
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.
Thanks @thheller!