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

The basic problem with C++ is that it has hiding without memory safety.

C has neither hiding nor memory safety. Most newer languages have both. C++ stands alone as a widely used language with high level unsafe abstractions. This is the source of most buffer overflow security advisories.



What's "hiding" in this context?


The usual euphemism is "abstraction". It's doing something inside, it's hard to see what that is, and it has constraints on its use which are relevant to memory safety but are not enforced by the language.


So just like C code using functions and data structures not exported outside their translation unit.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: