rewrite-clj

Dumch 2022-06-02T09:24:47.836599Z

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?

borkdude 2022-06-02T09:26:33.496379Z

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

🙏 1
borkdude 2022-06-02T09:26:53.124899Z

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

👍 1
lread 2022-06-02T13:20:14.514709Z

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
borkdude 2022-06-02T13:21:47.158279Z

yes, deprecation seems good

lread 2022-06-02T13:54:45.952839Z

Thanks, raised an issue for it: https://github.com/clj-commons/rewrite-clj/issues/178