4 ms·
It wouldn't be difficult to add new built-in functions for allocating and freeing memory manually. If you wanted to remove garbage collection, it would require
by edsrzf 15y ago
It wouldn't be difficult to add new built-in functions for allocating and freeing memory manually. If you wanted to remove garbage collection, it would require a more significant language change. There are several constructs in the language that implicitly allocate memory.
If Go adds support for generics, manual memory management could be provided by a third party package.