Language Design: Schemas as Source Code
Published on 2022-08-06.
TLD;DR: Your compiler should treat schema definitions as a valid (alternate) source syntax of your programming language.
What’s the goal
Failed Alternatives
- poorly integrated source generation
- compiler plugins
- macros/type providers
- annotating program texts