Fork me on GitHub
#rewrite-clj
<
2020-12-19
>
lread23:12:44

Heya @vemv, my https://github.com/lread/rewrite-cljc-playground/tree/lread-ns-kw-map is probably ready for a whirl. My focus was on reworking sexpr, so I’m not sure that I did https://github.com/lread/rewrite-cljc-playground/issues/7#issuecomment-667743070 (but note that I did rename :namespaced? to :auto-resolved? on the keyword node record). I did not update my design notes yet, but did rework https://github.com/lread/rewrite-cljc-playground/blob/lread-ns-kw-map/doc/01-introduction.adoc which walk through some examples. I’m very happy to hear any feedback you might have.

👍 3
vemv09:12:31

🙌 I might give it a spin tomorrow. Just yesterday I was making sure I could spin a repl + run tests in the project :)

lread16:12:37

That’d be awesome. Looking forward to learning how you fare!

vemv15:12:07

Slowly diving into it :) I'm studing a bit the tests. Regarding the use of clojure.test/are, when there's a do or let in are's "expr" argument, it's nice to place a true at tail position. That way, if the test fails, it only does once, instead of twice (inner is clauses + implicit surrounding is clause)

vemv15:12:11

I also spotted an are with a single is, which is redundant (you can just place = instead of is =)

vemv15:12:08

Finally, if you are an emacs user you might enjoy running clojure-align over the are forms, so that they become tables. (There's no objective reason why one would favor tables... simply I've seen tables being praised by rich et al in various contexts)

lread15:12:04

Awesome tips & observations, thanks!

lread15:12:19

Looking forward to the next set!