Type Erasure
AssessTechniques
A programming technique for handling different types through a shared interface.
Why it's here
Placed in Assess: 1 article(s) of evidence from 1 source(s), led by framework updates, with 1 in the last 30 days. Confidence 24%. Low accumulated evidence, so it defaults conservatively pending more signal.
Evidence (1)
- 5Hacker News·7/14/2026framework_updateBeautiful Type Erasure with C++26 Reflection
The post introduces rjk::duck, a single-header C++ library that uses C++26 reflection to simplify advanced type erasure. It aims to reduce boilerplate while supporting owned and non-owned objects, interface composition, adapters, and extension methods, though it currently requires GCC with experimental reflection flags.