Hacker News
points by thradams 15 hours ago | 0 comments
Memory safety is something that can be added to C. For instance, Cake in safety mode requires explicit handling of potentially null return values.

http://cakecc.org/playground.html?code=I2luY2x1ZGUgPHN0ZGlvL...

Most of the problems described in Rust manuals as things C cannot prevent, such as memory leaks, double frees, and use-after-free, can be detected at compile time in Cake with very few annotations.

[–] bestouff 3 hours ago
That's RAII for you and that's the easy part. Rust has so much more safety features C can't even dream of having. Its type system for a start.
Hacker News