rewrite-clj

https://github.com/clj-commons/rewrite-clj
2019-08-29T06:08:23.003200Z

@lee is it correct that rewrite-clj does not have a way to print out nodes so they can be read back in by read-string and friends? i was thinking it might be interesting / useful to be able to send results of rz/of-string to rebl / punk for examination.

2019-08-29T06:09:35.004400Z

i looked at node/protocols and am not seeing any switches there...have some vague memory of being able to see some kind of alternate representations for something rewrite-clj-related...

2019-08-29T06:23:48.006Z

i disabled make-printable! and now rz/of-string results are examinable via at least punk...will try rebl next

2019-08-29T06:25:59.006200Z

works in rebl too 🙂

2019-08-29T06:34:30.006600Z

i wonder if there's a better way to toggle the make-printable! behavior

lread 2019-08-29T12:44:09.013800Z

Hi @sogaiu! I do remember working to add make-printable support to on the cljs side of rewrite-cljc to match clj side behavior. So I think you are saying the override of the default print behavior is not always so helpful. Nothing is coming to mind - I’ll take a little look and get back to you sometime soon.

2019-08-29T21:51:37.014300Z

@lee tnx!

lread 2019-08-29T21:52:36.015100Z

anytime @sogaiu! I was starting to miss our rewrite-clj* chats. :simple_smile: