Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Measter
· 1y ago · 0 comments
For giggles, here's one I whipped up, along with an example use:
https://godbolt.org/z/Eezj35dzc
Comments
[–]
eqvinox
1y ago
Having done unspeakable things with the C preprocessor myself, this Rust macro soup truly warms my heart <3
[–]
Measter
OP
1y ago
Oh this is simple, this is just a bit of basic expansion to generate boilerplate. The real experts can do some gnarly and amazing stuff with macros.
[–]
Sharlin
1y ago
Wow, that's some hardcore unrolling.