fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

More crimes against Hare: @​foreach loop similar to range loops in Java or C++

A nice side effect of this: I've randomly found some bugs in hare::unparse and hare::parse

@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

@wolf480pl @yyp New post on the Hare programming language blog: "Generating code generator generators in Hare"