Hello! ๐
Iโm trying to elide dead feature flag branches from our codebase and rewrite-clj seems to be the tool for that type of thing ๐
Right now I have a big function that returns something that is wrapped in <forms: โฆ >
. I tried rewrite-clj.zip/string
to just turn it into a regular string but that didnโt work (same for root-string
). In particular Iโm getting the following error:
rewrite_clj.node.forms.FormsNode cannot be cast to clojure.lang.IFn
Duh, just str
works ๐
๐
Glad you got things working @martinklepsch! Without seeing your code it is hard for me to guess why the zip APIโs string fns were not working for you. Could it be that you were calling these fns on nodes rather than a zipper?
Yeah it seems so
I didn't even know z/string
existed, I've always just used str
:)
Honestly no idea why I didnโt just try that hahaha
Well, the nice thing is we got a visit from you here in the rewrite-clj channel! ๐
always here to entertain ๐
but yeah, I was thinking the same, itโs nice when the circle closes ๐