shared - no read/write access

Kagamin spam at here.lot
Wed Mar 20 18:19:49 UTC 2019


On Wednesday, 20 March 2019 at 13:25:01 UTC, Stefan Koch wrote:
> In it's current form the `shared` qualifier is not improving 
> the thread-safety
> of D code.

It does, proof: https://issues.dlang.org/show_bug.cgi?id=6585

> Being conservative and disallowing all access is by far the 
> most sensible handling
> if safety is a concern.

Added noise and cognitive load on programmer causes more bugs, 
not more safety. shared is already restrictive enough to handle, 
making it more restrictive will only make people give up on it 
more often.


More information about the Digitalmars-d mailing list