4 ms·
I wouldn't say that's the _point_
by stathibus 5y ago
I wouldn't say that's the _point_
- kwenfjkwenf 5y agoI would argue it is. It gives powerful, raw, and undisturbed access to the internals of a computer, optionally wrapped in a high-level wrapped. The undisturbed power is the point, and necessarily comes with unsafety.
- IshKebab 5y agoHe'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.