Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I 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.


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.


C 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: