Hey, I just invented macros for Hare
https://sr.ht/~yerinalexey/hare-annotate
More crimes against Hare: @foreach loop similar to range loops in Java or C++
@yyp I looked at the example in readme and the macro definitions look a bit verbose. Do you think it'd be possible to make them look sth like
@ annotate("@pi"){ // gen_pi body}
Without the need to register them explicitly?
@wolf480pl This is possible, but it would require to run some generator that handles @annotate on generators themselves, which I'd like to avoid.
@yyp I was hoping you'd run generators written in annotate through generators written in annotate...
@yyp though I guess thay'd require committing the generated source in version control so it's not as clean as other cases of self-hosted things
More crimes against Hare: @foreach loop similar to range loops in Java or C++