5 ms·
> It would be better if the GC can be turned off with a switch and just add a delete operator to manually free memory. This breaks the fundamental assumptions
by yarg 2y ago
> It would be better if the GC can be turned off with a switch and just add a delete operator to manually free memory.
This breaks the fundamental assumptions built into pretty much every piece of software ever written in the language - it's a completely inviable option.
Incorporating a borrow checker allows for uncollected code to be incorporated without breaking absolutely everything else at the same time.