This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-14
Channels
- # adventofcode (2)
- # announcements (61)
- # babashka (26)
- # beginners (125)
- # calva (63)
- # cider (33)
- # clj-kondo (40)
- # cljs-dev (24)
- # clojure (165)
- # clojure-australia (8)
- # clojure-dev (4)
- # clojure-europe (44)
- # clojure-finland (1)
- # clojure-greece (4)
- # clojure-losangeles (1)
- # clojure-nl (28)
- # clojure-taiwan (3)
- # clojure-uk (64)
- # clojurescript (2)
- # core-async (14)
- # datomic (34)
- # docker (2)
- # fulcro (9)
- # garden (1)
- # jobs (4)
- # jobs-discuss (21)
- # kaocha (3)
- # off-topic (48)
- # pathom (4)
- # practicalli (3)
- # remote-jobs (3)
- # shadow-cljs (46)
- # spacemacs (6)
- # sql (4)
- # tools-deps (22)
- # xtdb (5)
- # yada (2)
we’re running into an edge case regarding how the cljs compiler indexes node modules: https://clojure.atlassian.net/browse/CLJS-3293
would a patch which adds support for .cjs as main files in package.json like this be acceptable? https://github.com/nextjournal/clojurescript/commit/f48609b862062caae6d19d5d281c4f7b53a39c25
@dnolen true, checking :meta
is an extra step - is type
a thing that is used in hot-loops though? Could be. Does CLJS use type
internally for protocols/multimethods?
It's not a big problem for me. I hit this issue in sci (Clojure interpreter) because I am using :type
on its implementation of records (which are just there for compatibility).
there could be a new thing that does what type
used to do, and type
could do Clojure behavior
would need a lot of lead time on this because it would be seriously breaking behavior now
So the way it works in sci now is that (= (type x) (type y))
returns true if two things are of the same record type, which I think is better than relying on the concrete return value of type
. Although it was also requested to get back the namespace and name of the record type. I wonder if that is possible in CLJS at all.