Hacker News new | ask | show | jobs
by zozbot234 2159 days ago
You can get quite close to the use case for Rust macros by considering C++ template-based metaprogramming. Of course the biggest difference is that Rust macros have been designed from first principles, not as a clunky afterthought.