This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-21
Channels
- # announcements (15)
- # babashka (2)
- # beginners (90)
- # cider (3)
- # circleci (1)
- # clj-kondo (5)
- # cljs-dev (7)
- # clojure (49)
- # clojure-australia (9)
- # clojure-berlin (3)
- # clojure-dev (1)
- # clojure-europe (58)
- # clojure-nl (3)
- # clojure-norway (1)
- # clojure-uk (7)
- # clojurescript (66)
- # code-reviews (1)
- # community-development (3)
- # conjure (47)
- # datomic (57)
- # emacs (4)
- # fulcro (5)
- # graalvm (1)
- # introduce-yourself (7)
- # jackdaw (1)
- # jobs (2)
- # kaocha (4)
- # lsp (87)
- # nrepl (1)
- # off-topic (33)
- # pedestal (7)
- # portal (12)
- # re-frame (7)
- # reitit (11)
- # releases (1)
- # ring (1)
- # rum (7)
- # sci (2)
- # shadow-cljs (38)
- # sql (15)
- # vim (2)
quiz: how many java.util.Date
instances are created by running clj --main cljs.main -e "(println (.getUTCDay #inst\"2021-05-21T05:36:47.102-00:00\"))"
? Answer in thread
I expected it to be 0, but it's actually 2.
the emitted js is like new Date(123343...)
, rather than being e.g. cljs.core.instant("2021-05-21T05:36:47.102-00:00")
... and I guess it's done this way as an optimization
@dnolen the tests are passing with the current patch attached to https://clojure.atlassian.net/browse/CLJS-3294 and I've included a write-up of how custom data-readers work (which is different from in-built data-readers). If you think that looks ok I'll add some tests
@henryw374 thanks I don't think we should risk this one in this cycle - but can consider for the next one