2 ms·
>In C, the memory abstraction the language gives you has that leak, so it's really hard to build a container on top of it that doesn't have that leak. >In safe
by cuckcuckspruce 11y ago
>In C, the memory abstraction the language gives you has that leak, so it's really hard to build a container on top of it that doesn't have that leak.
>In safer languages, the memory abstraction doesn't have that leak, because bounds are checked, and new byte buffers are initialised to zero.
Most of the implementations of these safer languages are in C, so clearly there's a way to do this correctly in C.