On Sunday, 7 April 2013 at 22:59:37 UTC, Peter Alexander wrote:
On Sunday, 7 April 2013 at 22:33:04 UTC, Paulo Pinto wrote:
Am 08.04.2013 00:27, schrieb Timon Gehr:
Every time a variable is reassigned, its old value is destroyed.

I do have functional and logic programming background and still fail to see how that is manual memory management.

Mutable state is essentially an optimisation that reuses the same memory for a new value (as opposed to heap allocating the new value). In that sense, mutable state is manual memory management because you have to manage what has access to that memory.

If you as a developer don't call explicitly any language API to acquire/release resource and it is actually done on your behalf by the runtime, it is not manual memory management.

Reply via email to