rust-in-ten-slides icon indicating copy to clipboard operation
rust-in-ten-slides copied to clipboard

Explain macro after function in Basic Syntax

Open cg-cnu opened this issue 6 years ago • 1 comments

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 ?

cg-cnu avatar Apr 05 '18 06:04 cg-cnu

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.

steveklabnik avatar Apr 05 '18 12:04 steveklabnik