Nine Rules for Creating Procedural Macros in Rust - Lecture

Nine Rules for Creating Procedural Macros in Rust - Lecture

Rust via YouTube Direct link

Understand Rust syntax trees

6 of 9

6 of 9

Understand Rust syntax trees

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Nine Rules for Creating Procedural Macros in Rust - Lecture

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Nine Rules for Creating Procedural Macros in Rust
  2. 2 Talk's Approach: 9 "Rules"
  3. 3 Develop as a normal (non-macro) project
  4. 4 Convert freely: Strings, Syntax trees, Literal code
  5. 5 Create debuggable unit tests
  6. 6 Understand Rust syntax trees
  7. 7 Recursively manipulate syntax trees
  8. 8 Follow the rules of elegant Rust API design
  9. 9 Conclusion: Follow these 9 rules and ... writing macros as easy as writing a regular Rust program ... that manipulates large, nested structs.

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.