Frameworks and libraries

monkyyy crazymonkyyy at gmail.com
Fri Sep 15 14:50:27 UTC 2023


On Thursday, 14 September 2023 at 16:30:27 UTC, user548215 wrote:
>>>gc bad
>> gc good
> Can you explain why?

>> gc very very good *wall-o-text*

There is an extremely important feature of dynamic arrays; you 
sometimes get 8 chars of strings or 100 chars of string and like 
either, you have dynamic arrays or you do the c thing of null 
termination. And the null termination is just terrible.

In d rn; the dynamic arrays are gc'd and they are the only data 
structure worth a damn with the devs dragging their feet on 
adding data structures to "containeers" for some meme about 
allocators.

I don't believe in the technical merit of gc over any other 
possible solution for dynamic arrays; but you don't have all 
possible worlds, d as is, is gc'ed to hell and back and nogc is a 
bandaid to advertise its something its not.


More information about the Digitalmars-d mailing list