rewrite-clj

https://github.com/clj-commons/rewrite-clj
2019-04-19T08:06:28.065200Z

@lee i don't know if you'll find it to be of any help, but i worked on a not quite complete port of specter to clr with a few others, and we used reader conditionals for jvm, js, and clr (:clj, :cljs, and :cljr respectively). i think we also occasionally used :default in some cases where jvm and clr clojure matched -- iirc, in those cases, it turns out that ordering the conditionals can make things less awkward (e.g. putting :cljs first and then :default to handle the other two cases). if you're interested in taking a look, it's the clr-support branch at: https://github.com/sogaiu/specter/tree/clr-support. if you do, am happy to hear feedback about reader conditional use as there might be better ways to do things we didn't manage to figure out or apply appropriately 🙂

2019-04-19T08:07:36.066100Z

iirc, it turns out (at least in specter) that there's a fair bit more similarity between jvm and clr clojure than with cljs.

lread 2019-04-19T10:04:34.067Z

thanks! I will most definitely take a look!