Fork me on GitHub
#rewrite-clj
<
2023-07-25
>
Quentin Le Guennec07:07:45

Hi, is there some published rewrite-clj code somewhere that removes reader conditionals, eg, if you want to turn your cljc files into clj ?

borkdude07:07:46

Yes, I've got some code for this in clj-kondo, it's in impl/utils.clj

borkdude07:07:22

clj-kondo basically passes over a .cljc file for each language and removes any reader conditional branches that it's not interested in for that particular language

Quentin Le Guennec13:07:36

Very cool, I’ll check it out, thanks borkdude