Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: I rewrote the `memoize` crate using macro_rules using nightly features
Currently only supports basic usage, not full usage with lru and config.
I saw the new macro_attr
attribute and wanted to try it out (alongside macro_metavar_expr_concat
), so I found a proc_macro crate that seemed simple enough and rewrote it based on its documentation.
I hope this serves as a good proof-of-concept of what will hopefully be possible in stable rust in the future, and potentially inspire other people to mess around with macro_rules!
.
4 posts - 2 participants
🏷️ Rust_feed