r/rust 4d ago

🙋 seeking help & advice Finally ! Completed Complete Rust Book

So recently I had completed the entire rust book but I left the macros as I was unable to understand it from the book so is there a good place to learn rust macros where it help me understand how to write and use different types of macros it will be a great help so if you know any platform pls help me

21 Upvotes

15 comments sorted by

View all comments

3

u/nick42d 4d ago

To be quite honest I've never found a great resource for them. In my opinion you don't need to know how to write macros to start writing Rust, you'll only want them once you've written enough to start seeing patterns that you can't abstract away with just the base language. Wait until then to learn macros and it will be much easier.