Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
inferiorhuman
on May 19, 2022
|
parent
|
context
|
favorite
| on:
Rust: A Critical Retrospective
Procedural macros have a peek function from the syn crate. macro_rules macros can stuff this into the pattern matching.
e.g.
https://turreta.com/2019/12/24/pattern-matching-declarative-...
colejohnson66
on May 20, 2022
[–]
But proc macros are limited by requiring another crate (unless things have changed in the last year). Sure, it’s just one extra crate in the project, but why must I be forced to?
inferiorhuman
on May 21, 2022
|
parent
[–]
Asked and answered in an adjacent comment.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
e.g.
https://turreta.com/2019/12/24/pattern-matching-declarative-...