mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 06:46:37 +00:00
I'm trying to reduce the amount of per-SemanticsNodeKind boilerplate, and make mistakes (e.g., SemanticsNodeKind not matching the Make name, misplacing the type, or Get/Make type mismatches) easier to see. I could've done this with (more) macros, but felt that the template approach was reasonable enough and likely easier to understand/debug. I'm not sure whether there's more that I could be doing with variadics to reduce the amount of factory code, but this feels good right now.
Toolchain
A design is currently maintained in Google Drive. It'll be migrated to markdown once we are confident in its stability.