Fork me on GitHub
#rewrite-clj
<
2022-06-02
>
Dumch09:06:47

How do you create a zipper from a node? I can do (-> "Text({'a':1, 'b':2})" dart->ast ast->clj n/string z/of-string) Is there a way to skip n/string?

borkdude09:06:33

@arturdumchev I believe this is z/edn (the name is slightly weird)

🙏 1
borkdude09:06:53

Maybe we should introduce an alias for this of-node, wdty @lee?

👍 1
lread13:06:14

Yeah @borkdude, I think that would certainly be clearer and consistent with existing of-string and of-file. I can slip this into the next release. How do you feel about us deprecating edn and edn* , it might encourage folks to switch to a more meaningfully named var... but there's nothing otherwise harmful in using these fns.

👍 1
borkdude13:06:47

yes, deprecation seems good