back

by dmitrygr·12y ago·view on hn ↗
Actually, "what bothers [...] the most about C" for me is not pointers or leaks. It is people who blame the language for their inability to keep track of the memory they allocate and use.
1 comments
Most people who write C professionally have no trouble doing this, but memory leaks still occur.

It's easy to miscommunicate what part of the code manages what memory if you're working in a group, not to mention just normal human error. It's very easy to accidentally forget to free something, especially when you're on a tight schedule or distracted. I mean, how many times have you wondered 'how did this ever work' when looking through old code you wrote?

That said, most of these problems are significantly lessened by C++ (though it's obviously not a panacea).