Still on my journey to understand macros and the Nim AST... Is there an easy way to get the fields of an object type at **compile time** in a macro? Or do I need to write another macro to walk the AST myself?
For example, given:
type Foo = object
a: int
b: string
Run
Can I get something like:
getFields(Foo)
("a", int), ("b", string)
Run
