Hacker News new | ask | show | jobs
by asveikau 3270 days ago
That requires knowing types at compile time, and expands to just the code with the specific types used in the instantiation. That doesn't work with a virtual method dispatch kind of scenario where the types in the target method are not known to the runtime.