3 ms·
It would seem that if you want C with RAII, you...use C++ and limit the features you use. QED.
by eschneider 2y ago
It would seem that if you want C with RAII, you...use C++ and limit the features you use. QED.
- manuel_w 2y agoSounds reasonable. In a project I used to work in I disabled stdlib, exceptions, RTTI. Not sure what else to disable to essentially have C with different syntax.
- legobmw99 2y agoextern “C” on everything, if you care about linking compatibility, gets you another chunk of the way there by also disabling overloading etc.
- 01100011 2y agoThis is surprisingly common. C++ is huge and filled with many features that are only understood by a small subset of folks and so many teams have restricted coding standards that define which features can be used and how.