Closed borkdude closed 1 year ago
My initial reaction to this is that it might be a little too specialized for Medley.
No problem. I'll close and we can re-open if in the future there's more general interest.
Guess what: this is effectively walk/postwalk-replace
but with the arguments swapped :)
I sometimes find myself needing to template EDN literals in code where
clojure.template/do-template
is too limited (e.g. it doesn't resolve locals) and syntax-quote does too much (it auto-qualifies symbols.So I wrote this function:
Perhaps there are more people who regularly need this templating function. It's too small to live in a library but perhaps it would be good to have this in medley.