Richard Schneeman on Nostr: I can define a const easilly enough, but then I want a way to iterate over all the ...
I can define a const easilly enough, but then I want a way to iterate over all the consts within some given scope.
I can separately add it to a const array, but that requires me to remember for every new item added and it's not easy or intuitive to code a test that would catch mistakes. I'm thinking maybe something with macros could make this easier. I'm wondering if there's prior art here or maybe I'm missing something super simple.
I can separately add it to a const array, but that requires me to remember for every new item added and it's not easy or intuitive to code a test that would catch mistakes. I'm thinking maybe something with macros could make this easier. I'm wondering if there's prior art here or maybe I'm missing something super simple.