Adding Reflection to C

telotortium 13 points 4 comments May 28, 2026
www.davidpriver.com · View on Hacker News

Discussion Highlights (4 comments)

tliltocatl

Been there… Pendantic nitpick: it's more akin to introspection, reflection would be self-modifying code.

uecker

Here is my proposal with a lot of similarities: https://www.open-std.org/JTC1/SC22/WG14/www/docs/n3212.pdf

cozzyd

BTF or DWARF info in principle contain the information needed, though working with them is cumbersome...

teo_zero

Nice. But you've just invented Zig!

Semantic search powered by Rivestack pgvector
8,861 stories · 83,648 chunks indexed