News for hackers. Stuff that matters.
Re:Ask HN: Why is there not a memory-safe C? by gaius on Thursday May 24, 2018 @08:26AM (#17143253)
What is the use case for a “safe C”? You use C because you do want control over how your data is actually stored in memory, for reasons of efficiency, or performance, or dealing with hardware, or whatever reason. The ability to just grab a bunch of bytes and cast them to a struct is absolutely key in many real systems.

But if you really do want it, C offers the opportunity to replace malloc() with whatever you like... or to not malloc at all...

There are no comments on this comment yet.