Why D is not popular enough?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Sat Aug 13 09:01:08 PDT 2016


On Friday, 12 August 2016 at 22:58:45 UTC, Steven Schveighoffer 
wrote:
> It's broken because it's inconsistent. If the compiler is going 
> to complain about races in one case, but not in other 
> equivalent cases, then the feature is useless.
>

If anything, it guarantee you that this kind of things will NEVER 
happen if not shared, which is in itself a huge benefit.

> If all I have to do to avoid compiler complaints is rewrite my 
> expression in an equivalent way, then what is the point of the 
> complaint? At that point, it's just a style guide.
>

The ways are equivalent only in the absence of race condition on 
a. This is not guaranteed for shared.



More information about the Digitalmars-d mailing list