Hacker News new | past | comments | ask | show | jobs | submit login

Run:

    $ cargo expand
And you’ll see the resulting code.

Rust is really several languages, ”vanilla” rust, declarative macros and proc macros. Each have a slightly different capability set and different dialect. You get used to working with each in turn over time.

Also unit tests is generally a good playground area to understand the impacts of modifying a macro.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: