no docs for data_readers.cljc
henryw374 opened this issue · comments
There are fundamental differences between reader functions targeting Clojure vs those targeting Clojurescript.
see pr #391 for my attempt at a guide
fleshed it out into a guide... ready for PR?
another workaround is to use the if-cljs
macro from https://github.com/plumatic/schema/blob/master/src/clj/schema/macros.clj , which lets all 3 versions of the tag-reader function co-exist in the same .cljc
file without classpath trickery. i've no idea whether if-cljs
works for self-hosted cljs, but it's working fine for my vanilla cljs compilation setup
an example: https://gist.github.com/48e645ab0e4a3fa30373ef1b4e4c7f26
fixed. new guide at https://clojurescript.org/guides/reader