2 ms·
I don't think any amount of docs could make the Rust macro syntax palatable. The problem is more fundamental, macros as they are currently implemented are a hug
by simias 6y ago
I don't think any amount of docs could make the Rust macro syntax palatable. The problem is more fundamental, macros as they are currently implemented are a huge pain to write, even if you know what you're doing. Having to rely so much on recursion for instance adds a lot of complexity.
But on the other hand it means that people are less inclined to abuse them and they're a lot more hygienic than C-style macros...
- kd5bjo 6y ago> Having to rely so much on recursion for instance adds a lot of complexity. I’ve written some fairly heavy Rust macro code, and I almost never need recursion— the repetition primitives generally prove sufficient for my needs. What are you doing that needs all the recursion?