rewrite-clj

lread 2021-08-07T15:30:54.025600Z

Awesome @whatacold! Thanks for sharing!

Ken Huang 2021-08-07T16:26:19.026800Z

Thanks for the kind words, and I also made this into a blog post for better reading: https://whatacold.io/blog/2021-08-07-illustrate-clojure-snippet/

Ken Huang 2021-08-07T04:51:39.019Z

@lee By standing on your shoulder, I finally make my babashka script work, thanks so much! Here is the script: https://github.com/whatacold/babashka-tools/blob/master/illustrate.clj

Ken Huang 2021-08-07T04:58:36.023200Z

Aside from rewrite-clj, I learned two things from you code: 1. Keep the number of bindings of loop as less as possible, one binding is best, so that this is little for recur to care about. 2. The [...] part of let is a good place to put some logic, so that the body part could be simple and clean.