Hacker News new | ask | show | jobs
by dralley 1613 days 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.

1 comments

When 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.
You are misinformed. ASAN is a debugging tool. It is not a mechanism to provide safety to C applications.
I think their reply is fair as a response to the capabilities of "zig test"
We're talking about tests here.

I work with ASan for a living. I know what it is, thank you :)