Comparing reflection capabilities of C++, Zig and C3
- Reflection lets a program inspect and manipulate its own structure at runtime or compile time.
- All C++ (with its upcoming reflection support), Zig and C3 rely on compile-time reflection, so you can reason about types, enumerators, and struct members without any runtime cost.
- In this post I will compare how these languages approach compile-time reflection.
Unverified
- Reflection lets a program inspect and manipulate its own structure at runtime or compile time.
- All C++ (with its upcoming reflection support), Zig and C3 rely on compile-time reflection, so you can reason about types, enumerators, and struct members without any runtime cost.
- In this post I will compare how these languages approach compile-time reflection.
Sources: Github