rust-in-ten-slides
rust-in-ten-slides copied to clipboard
Explain macro after function in Basic Syntax
Great idea and amazing resource. Learned a lot in few hours than spending a week on the book
.
In basic syntax, can we let go of debug {:?} and have few lines explaining macros
?
So, the order would be, after function
we introduce macro
and give println!
as an example for macro instead of just explaining how to print stuff to screen ?
we introduce macro and give println! as an example for macro instead of just explaining how to print stuff to screen ?
I'm open to moving the debug print stuff to being a sidebar about macros (with >
) but I think keeping the title and focus the same is important. Once new macros land I'll end up doing a whole thing about just them.