cljs-dev

ClojureScript compiler & std lib dev, https://clojurescript.org/community/dev
borkdude 2021-01-09T11:12:39.145100Z

why does cljs type not take into account the :type key of metadata?

ClojureScript 1.10.597
cljs.user=> (type (with-meta {} {:type 'Foo}))
cljs.core/PersistentArrayMap
cljs.user=>

Clojure 1.10.1
user=> (type (with-meta {} {:type 'Foo}))
Foo

borkdude 2021-01-09T11:15:01.145300Z

user=> (doc type)
-------------------------
clojure.core/type
([x])
  Returns the :type metadata of x, or its Class if none

clyfe 2021-01-09T11:42:50.145900Z

cljs.user=> (doc type)
-------------------------
cljs.core/type
([x])
  Return x's constructor.
A ticket is to be made afaict

clyfe 2021-01-09T11:43:57.146700Z

clj impl has an extra (or meta ... compared to cljs, easy fix