Metaprogramming over reflection
Platform spec ADR
Metaprogramming over reflection
Spec standingStandard
- No directly attached article pages for this node.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
what-this-feature-specifies | yes | yes |
implementation-anchors | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Context
Section titled “Context”Reflection-heavy stacks defer errors to runtime and obscure performance and ABI truth.
Decision
Section titled “Decision”Language and compiler features should expose compile-time metaprogramming (mods, analyzers, codegen hooks) instead of encouraging runtime reflection as a default extension model.
Consequences
Section titled “Consequences”Compiler SDK and mods are AOT-oriented; diagnostic parity targets compile-time failure.
Verification anchors
Section titled “Verification anchors”Metaprogramming; compiler mod features under compiler/compiler-mods/.