Hacker News new | ask | show | jobs
by hfdgiutdryg 2820 days ago
With regular inheritance, you affect behavior from the bottom up.

With the "Curiously Recurring Template Pattern", you affect behavior from the bottom up and from the top down.

To be honest, I don't know if it has value for most tasks people care about (outside of libraries, I mean). But it was fantastic for optimizing OOP-abstracted desktop applications. If you have some subset of functions that need to be called a lot, then avoiding virtual functions really helps.