Why is there no garbage collection in c++
Garbage collection requires data structures for tracking allocations and/or reference counting. These create overhead in memory, performance, and the complexity of the language. C++ is designed to be "close to the metal", in other words, it takes the higher performance side of the tradeoff vs convenience features.…
Answered Oct 14, 2022 · 557 Views Read answer →