News for hackers. Stuff that matters.
Re:Rust 1.43 by pornel on Thursday April 23, 2020 @03:12PM (#22959871)
It's a bit like C's:

    #define MAC_TRAIT(i) trait T { i }

    MAC_TRAIT( fn foo() {} )

Except that in Rust macro arguments are typed and can dictate their own microsyntax. Macro output is assembled in the syntax tree, not as text find'n'replace, which also avoids many surprises.

There are no comments on this comment yet.