This is a difference in the type function. The clojurescript type function ignores metadata. So the clojurescript type function is like the clojure class function, and clojurescript doesn't have a class function.
On 05/20/2016 09:22 AM, hiskennyness wrote: > I see here > https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure > that "Atoms work as in Clojure.", but I think I see a difference: > > 1. I am using a custom type hierarchy in a namespace > tiltontec.modeller.cell_types: > > | > (defonce ia-types (-> (make-hierarchy) > (derive ::model ::object) > (derive ::cell ::object) > (derive ::c-formula ::cell))) > > | > > 2. At the repl I switch to the cell types namespace and create an atom: > > | > (def my-formula (atom 42 :meta {:type ::c-formula})) > | > > 3. In Clojure: > > | > (type my-formula) => :tiltontec.modeller.cell-types/c-formula > | > > 4. In cljs: > > | > (type my-formula) => cljs.core.Atom > | > > Sanity check: > > | > (meta my-formula) => {:type :tiltontec.modeller.cell-types/c-formula} > | > > Am I missing something? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to clojure+unsubscr...@googlegroups.com > <mailto:clojure+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout. -- And what is good, Phaedrus, And what is not good— Need we ask anyone to tell us these things? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.