Fork me on GitHub
#rewrite-clj
<
2021-08-24
>
lread18:08:33

@andrea.crotti please let us know what you end up doing to solve your problem!

andrea.crotti19:08:10

It almost works

andrea.crotti19:08:57

I managed to nuke a few clojure scratch namespace when overwriting with a broken code

andrea.crotti19:08:19

That were not in git on purpose but not the end of the world

andrea.crotti19:08:10

It would be nice to have a more declarative API to capture the different things I want to parse and rearrange

andrea.crotti19:08:22

Something like regex capture groups

andrea.crotti19:08:41

But I guess I can some semi generic abstraction myself

andrea.crotti19:08:02

Rewrite-clj is the low level machinery I guess

lread19:08:13

Yes, I think so.

javi14:08:37

i use https://github.com/akhudek/zip-visit with my zippers and write domain specific visitors. ie: i use it in my editor to transform hiccup and have visitors like replace attr, class string to reagent style dot syntax etc … i find it lets me keep the my code clear and reusable.

lread18:08:00

Thanks for sharing @U9VP9VCE6! I’ll put it on my todo list to have a look-see!