Skip to content

Comment on Type Erasure in C++ Explainedparent

Comments

Indirection is the price of scale. As a system grows, you need breaking points, boundaries. These often result in adding one more level of indirection.

But we're also moving in the other direction, for example Java is introducing value types ("inline classes") and low-level memory allocation/manipulation APIs. That's a big step for a language that started with the idea of everything is an object (and an object is an indirection).

I would call indirection the price for abstraction.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.