GeistHaus
log in · sign up

Macros in Rust pt2

ncameron.org

(Continuing from last time). procedural macros Also known as syntax extensions or syntax plugins or compiler plugins (which they are just a category of). I'll not get into the naming thing here, but I'll try and stick to 'procedural macro'. Procedural macros are implemented using pure Rust code at the

2 pages link to this URL
Introduction to Procedural Macros in Rust

One of the really nice things about Rust is its macro system. It makes it really easy to generate boilerplate code that would otherwise be really tedious to write by hand. In this post you'll learn how to write your own macros that will put Nicolas Cage quotes in the error messages generated by your IDE.

0 inbound links article en