How usable is the D language without a garbage collector?
    bachmeier 
    no at spam.net
       
    Fri Jul 15 14:44:28 UTC 2022
    
    
  
On Friday, 15 July 2022 at 09:27:51 UTC, LinguisticMystic wrote:
> D seems to be a good one as it ticks all the boxes of C++ while 
> fixing most (all?) of its flaws.
I don't have an answer to your main question, because I mostly 
just use the GC (including for number crunching) and my life is 
good.
However, I want to caution that you need to view D as an 
alternative to C++, not an iteration. I have on many occasions 
seen C++ users get upset because D does not always operate the 
way they're used to C++ operating. It's a different language.
> However, what confuses me is the fact that D has a garbage 
> collector. My necessary requirement is that the runtime should 
> not include any such thing.
Bjarne Stroustrup has, for a very long time, [boasted that you 
can use garbage collection with 
C++](https://www.stroustrup.com/bs_faq.html#garbage-collection). 
That has clearly not prevented you from using C++. The fact that 
D has a garbage collector does not mean anything; just don't use 
it. You'll lose some parts of the standard library.
    
    
More information about the Digitalmars-d
mailing list