If a coder really has a hard time with manual memory management it means he can't really code, this is a beginner problem...
If a coder really has a hard time with manual memory management it means he can't really code, this is a beginner problem...
In fact the so called Garbage Collector do not really solve the problem of memory management, there are still a lot of potential for leaks and poor memory management when GC is used.
And it adds a lot of complexity to the language runtime, and it gets in the way, I've seen a lot of discussions about how to avoid triggering the GC, in the end, the solutions are more complex than good old manual memory management.
I am not saying that memory management is trivial if it was it could efficiently be handled by the compiler or the runtime.
There is no magic bullet solution for easy memory management, one has to choose the right policy considering the context, which is most of the time out of reach for the compiler.
The context is mostly the expected lifetime of the memory allocation.