Hacker News new | ask | show | jobs
by Measter 383 days ago
For giggles, here's one I whipped up, along with an example use: https://godbolt.org/z/Eezj35dzc
2 comments

Having done unspeakable things with the C preprocessor myself, this Rust macro soup truly warms my heart <3
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.
Wow, that's some hardcore unrolling.