What's the go with the GC these days?

Guillaume Piolat first.last at gmail.com
Mon Jan 7 22:02:02 UTC 2019


On Monday, 7 January 2019 at 18:18:05 UTC, H. S. Teoh wrote:
> Yep. GC phobia is a common malady among C/C++ folks (I used to 
> be one of them).

Guilty as charge here!

What I like most about GC is the efficiency! With scanning and a 
global owner, you don't need to keep ownership information 
anywhere. Which leads to less copying (std::string leads malloc 
for every string copy, GC avoids that), slices being two machine 
words instead of 3, etc.


More information about the Digitalmars-d mailing list