3 ms·
The language by itself, perhaps not, I don't know. But, the fact that it has a test framework built in, and the test allocator fails when it detects memory pro
by dralley 5y ago
The language by itself, perhaps not, I don't know.
But, the fact that it has a test framework built in, and the test allocator fails when it detects memory problems (like a built-in valgrind) definitely puts it far above C in terms of making it easy to write correct code.
- pcwalton 5y agoWhen I say that a language isn't meaningfully better than C in terms of memory safety, I mean C as programmed in 2022, which very much includes ASan.
- AndyKelley 5y agoYou are misinformed. ASAN is a debugging tool. It is not a mechanism to provide safety to C applications.