continuing from this post, re: semgrep/comby/ROTOR: https://discuss.ocaml.org/t/next-priority-for-ocaml/12561/97?u=elliottcable
Y’know, just musing, and i’m brand-new to this terminology so this may sound stupid, but …
with tools like Semgrep/Comby, we’re effectively talking about pattern-matching (over syntax instead of ADTs), and pattern-matching is a specific application of unification, right?
Am I correct in thinking that a truly-general refactoring tool like that would have a lot in common with a first-order #typechecker?
i dunno where to ask this where 'll actually get traction and a discussion; but i kinda want to. feels like i'm close to Understanding Something.