Idiomatic D using GC as a library writer

Adam D Ruppe destructionator at gmail.com
Sun Dec 4 12:37:08 UTC 2022


On Sunday, 4 December 2022 at 09:53:41 UTC, vushu wrote:
> What are your thoughts about using GC as a library writer?

Do it. It is lots of gain for very little loss.

> If you wan't to include a library into your project aren't you 
> more inclined to use a library which is gc free?

No, GC free means the library is necessarily more complicated to 
use and will likely result in a buggier program.

> Since to get most exposure as a D library writer you kinda need 
> to make it gc free right?

All of the top 5 most popular libraries on code.dlang.org embrace 
the GC.


More information about the Digitalmars-d-learn mailing list