DIP60: @nogc attribute

JN via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 16 02:03:21 PDT 2014


On Wednesday, 16 April 2014 at 01:57:29 UTC, Mike wrote:
> I don't believe users hesitant to use D will suddenly come to D 
> now that there is a @nogc attribute.  I also don't believe they 
> want to avoid the GC, even if they say they do.  I believe what 
> they really want is to have an alternative to the GC.

I'd have to agree. I doubt @nogc will change anything, people 
will just start complaining about limitations of @nogc (no array 
concat, having to use own libraries which may be incompatible 
with phobos). The complaints mostly come from the fact that D 
wants to offer a choice, in other languages people just accept 
what they have. You don't see C# developers complaining much 
about having to use GC, or C++ programmers all over the world 
asking for GC. Well, most of the new games (Unity3D) are done in 
C# nowadays and people live with it even though game development 
is one of the biggest C++ loving and GC hating crowd there is.

Another issue is the quality of D garbage collector, but adding 
alternative memory management ways doesn't help, fragmenting the 
codebase.


More information about the Digitalmars-d mailing list