Extracting all struct fields

No, I’m afraid there’s no way to do this because there is no way to dynamically create local variables. See Unpack named tuples (does anyone know how to do it?) - #9 by rdeits and Is it possible to get the fieldnames of a struct inside a macro? - #15 by rdeits for some related discussion.

2 Likes