Hacker News new | ask | show | jobs
by gpderetta 1286 days ago
I think this is called polymorphic recursion in Haskell circles.

In C++ you can monomorphize as long as you can somehow prove the recursion terminates at compile time (for example by threading a static recursion counter).