For various reasons, I would like to write a macro that
evals code at runtime to construct a custom struct. The problem is that the code that I am
evaling is not hygenically generated, because it comes out of a function that’s running at runtime, and not a macro.
Essentially, the reason for this is that these custom structs need to “inherit” from each other.
The other way that I was considering doing this was by having the custom struct declare a “mixin” macro, containing all of the fields, and then be able to use the “mixin” macro inside later macros. Is it possible to write a macro that declares a macro, and then use that declared macro inside further macros?
This all sounds horribly janky, but I promise it’s for a good purpose.