Fork me on GitHub
#rewrite-clj
<
2021-08-07
>
whatacold04:08:39

@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

whatacold04:08:36

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.

lread15:08:54

Awesome @whatacold! Thanks for sharing!

whatacold16:08:19

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/