Idiomatic D using GC as a library writer

vushu danvu.hustle at gmail.com
Sun Dec 4 13:58:28 UTC 2022


On Sunday, 4 December 2022 at 12:37:08 UTC, Adam D Ruppe wrote:
> 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.

That's great to hear thanks! I was worried if my library should 
be GC free or not and how it will affect the adoption of it. 
Seems like there is no concern.




More information about the Digitalmars-d-learn mailing list