Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

It is not possible to query type name in advanced compilation.
Code below prints correct record name in other compilation modes, but under advanced compilation it prints constructor source code.

`
(defrecord FooBar [a])

(def fb (FooBar. 1))

(prn (-> fb))
(prn (-> fb type))
(prn (-> fb type pr-str))
`

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-1109 (reported by skardan)
...