by yakubin · 3y ago · 0 comments
And in garbage collected languages you’d do the same to avoid the cost of GC.
There are plenty of reasons not to use C++, including the lack of memory safety, but if you've already decided to ditch that, C++ does let you pick and choose which parts you want to use.
Isn't that the case for most programming languages (ie, you can use the implementation you want/need), though?
The commitment to ensure that features do not add cost(memory, runtime) if you don't use them is something fairly uncommon in other languages, and many languages have features you can't meaningfully avoid.