This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-06
Channels
- # announcements (18)
- # asami (14)
- # aws (5)
- # babashka (58)
- # beginners (32)
- # calva (12)
- # cider (29)
- # clj-kondo (8)
- # cljfx (8)
- # cljs-dev (4)
- # clojure (101)
- # clojure-europe (54)
- # clojure-germany (5)
- # clojure-nl (8)
- # clojure-serbia (8)
- # clojure-spec (12)
- # clojure-uk (8)
- # clojurescript (24)
- # cursive (3)
- # datomic (17)
- # docs (2)
- # etaoin (12)
- # events (1)
- # fulcro (1)
- # google-cloud (2)
- # jobs (1)
- # jobs-discuss (6)
- # lsp (65)
- # luminus (2)
- # malli (10)
- # meander (4)
- # nrepl (1)
- # off-topic (112)
- # onyx (2)
- # pathom (6)
- # polylith (14)
- # re-frame (9)
- # reagent (36)
- # reitit (13)
- # releases (2)
- # remote-jobs (5)
- # rewrite-clj (12)
- # shadow-cljs (70)
- # specter (2)
- # startup-in-a-month (1)
- # xtdb (14)
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
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
Honestly no idea why I didn’t just try that hahaha
always here to entertain 😂