8:25:54pveHi, I'm trying to build a new macro on top of my "dot" path traversal macro, but I have a feeling I'm going about it the wrong way. The new macro is called "define-dot" and is intended to provide a way to define custom dot macros for specific use cases. It does so by translating the custom path into a path that "dot" can understand.
8:26:52pveHere is an example: https://github.com/pve1/dot/blob/main/dot.lisp#L262
8:28:34pveNow my problem is "binding" the variables in the left hand side patterns, so that they can be used in the right hand side match forms. Currently I do it with "subst", because it's the only thing I could come up with.
8:29:05pveBut that results in weirdness like this: