Refactoring tooling
Published on November 11, 2020 by Ambrose Bonnaire-Sergeant
Hello supporters,
I made some time for some personal hacking recently! I went back and completed a library I started back in July for refactoring Clojure code which I've dubbed typed.clj/reader.
In a nutshell, it's a Clojure reader based on tools.reader that outputs an AST instead of just a Clojure form. I've tried out rewrite-clj in the past and I was very impressed at its power, so I wanted to try my hand at creating a similar library to explore the problem space.
Here's an example of its use. It's still early stages. Next I want to try and combine typed.clj/reader with typed.clj/analyzer for smarter refactoring (think macro/scope aware refactoring with hardcoding a bunch of rules).
Thanks for your continued support!
Ambrose