Veykril / tlborm

The Little Book of Rust Macros (updated fork)
https://veykril.github.io/tlborm/
MIT License
754 stars 95 forks source link

Rewrite the SyntaxExtension/Hygiene chapter #40

Open Veykril opened 3 years ago

Veykril commented 3 years ago

It's really not great atm but I'm currently having trouble going into the topic without touching macro_rules!/proc-macro specifics, https://veykril.github.io/tlborm/syntax-extensions/hygiene.html

Basically after https://github.com/Veykril/tlborm/pull/43 lands, the hygiene subchapter of the syntax extension chapter is still a lot worse than the declarative macros one. Feels like a lot of information from the declarative one should be lifted into the syntax extension one?

Hasnabruzzn commented 2 years ago

Just opened #78 on the duplicated evaluation problem, which might be part of the hygiene chapter. What is so bad about the chapter? What I got from it is: