cljs-dev

ClojureScript compiler & std lib dev, https://clojurescript.org/community/dev
2021-01-22T19:51:11.005900Z

hello all. I'm after some input on data_readers.cljc - I want to be able to have a tag #foo/bar"xyz" that is read in both clojure and clojurescript - and of course the reader fn output will be different for clojure vs cljs. It doesn't seem to work to have reader conditionals in data_readers.cljc itself (the .cljc suffix suggests to me that should be possible though?) - or to have a :clj/:cljs conditionals in the tag reader function. Any ideas? I raised CLJS-3294 for this, but it could just be something I'm not doing right, rather than a bug

alexmiller 2021-01-22T20:07:18.006600Z

I think we have a ticket for this on clj side too

2021-01-27T14:16:33.012800Z

.. couldn't see an existing one

alexmiller 2021-01-27T14:16:49.013Z

ok

2021-01-27T14:26:11.013200Z

I think the fix would be to allow reader conditionals in data_readers.cljc - do you agree?

alexmiller 2021-01-27T14:40:15.013500Z

sorry, don't have time to look at it right now

2021-01-27T14:41:12.013700Z

ok thanks

2021-01-22T20:39:44.007600Z

what would be the correct behaviour do you think? reader conditionals in data_readers.cljc?