logoalt Hacker News

foltiktoday at 4:57 AM0 repliesview on HN

Macros in Rust have nothing to do with memory safety. They're typically used for compile-time codegen (derive, println!) and very occasionally for syntactic abstraction (vec!).