logoalt Hacker News

aw1621107 • today at 7:57 PM • 0 replies • view on HN

Even if you assume that's true that seems more like "constructors are needed for implementation inheritance" than "constructors are needed for RAII".

I'm not even sure about the former? The important bit is that base class invariants can't be observed in an invalid/inconsistent state, and regular visibility/privacy/etc. rules seem technically sufficient for that? I'm not sure where exactly the boundaries of "constructor-like concept" are supposed to lie.