cljs-dev

ClojureScript compiler & std lib dev, https://clojurescript.org/community/dev
2021-05-21T09:26:05.028800Z

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

2021-05-21T09:29:46.028900Z

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

2021-05-21T09:32:41.030900Z

@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

dnolen 2021-05-21T13:31:48.031500Z

@henryw374 thanks I don't think we should risk this one in this cycle - but can consider for the next one

👍 1
dnolen 2021-05-21T13:32:03.031900Z

there's enough fiddling here to be concerned about unexpected breakage

dnolen 2021-05-21T13:33:17.032200Z

@mfikes I think we should start prepping for next release

👍 1
dnolen 2021-05-21T16:40:59.032600Z

building 1.10.866 now