by clappski · 3y ago · 0 comments
- Templates (compile time), which are generic bits of code that are monomorphized over every combination of template parameters that they're used with.
- Virtualization (runtime), classic OO style polymorphism with a VTable (I think this similar to Rust's dyn trait?).
I still think that C++ templates are different than rust macros as they are not a separate pass from type checking.
Either that, or switch to Circle I guess.
Now can we automate writing archetypes from concepts (and viceversa)? Maybe in C++64 when we finally get static reflection.