3 ms·
He's right. Lack of safety is clearly not the point of C++. Nobody said "and we want this language to be unsafe!". It's unsafe as an unfortunate side effect of
by IshKebab 5y ago
He's right. Lack of safety is clearly not the point of C++. Nobody said "and we want this language to be unsafe!".
It's unsafe as an unfortunate side effect of the real point of C++: zero cost abstractions.
If there had been a way to make C++ safe and have zero cost abstractions (and be backwards compatible with C!) I'm sure they'd have done it.
- fulafel 5y agoC compatibility is the showstopper. And since everything was built on unsafe foundations of C compatibility, there could be no coherent language design principles serving safety.