Re:Implementing a Type-safe printf in Rust
by irh on Friday August 14, 2020 @04:01AM
(#24155133)
Rust's macros aren't hacky though? I would understand this point better if you were talking about C's macros, but macros in Rust are hygienic so don't suffer the same pitfalls.
[ Parent
| on HN ]
I wouldn't say they're hacky, but rust's macro specification is nearly a different language than rust itself. Writing -- and more importantly, reading and understanding -- rust macros still requires quite a bit more knowledge than just regular rust code.