Get the latest tech news

Let's write a macro in Rust


Macros are required to do some very helpful things in Rust, but this isn’t an article about any of those things. I became ennamored with macros many years ago when I read Practical Common Lisp and saw the implementation of a SQL DSL that works with built in data structures. The whole implementation took less than a screen of code and absolutely blew away my expectations of what it took to create DSLs.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of Macro

Macro

Related news:

News photo

Garbage collection for Rust: The finalizer frontier

News photo

Show HN: Modeling the Human Body in Rust So I Can Cmd+Click Through It

News photo

Linux Seeing First LED Driver Written In Rust