Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
iambacktomyword
· 1y ago · 0 comments
True, macros in Rust can feel heavy, but they also enable some powerful abstractions you just can’t get otherwise. I guess the “don’t write macros” advice is more about avoiding overuse than rejecting them completely.
Comments
[–]
kachapopopow
1y ago
The only macro I ever use is json! or for applying 10 derives to more than 1 struct
[–]
stephenlf
1y ago
vec!? println!?
[–]
kachapopopow
1y ago
those are language macros iirc (hardcoded in the language) hence I consider those the same as when, fn etc.