Gist is here: https://gist.github.com/abe-egnor/7b1fadfe2197512ab91b
I'm very unexperienced with macros, so I can't tell if I'm doing things
wrong or bumping into bugs. When attempting to make a simple macro to
capture a particular pattern for implementing an enum type, I ran into
multiple issues:
A - it looks like, when quoting a baremodule with a spliced name, the
module parsing binds to the $ as the name of the module, and you're left
with a raw variable name in the module body.
B - I couldn't find a way to directly splice in an expression list
C - macro expansion is barfing ("malformed module expression") on exprs
that work just fine when eval()'d.
Would much appreciate guidance on whether I should update my code or file
bugs :)