Rethinking the default class hierarchy: Milestone 1, Week 1

Sebastiaan Koppe mail at skoppe.eu
Thu Sep 30 07:23:34 UTC 2021


On Thursday, 30 September 2021 at 04:02:30 UTC, rikki cattermole 
wrote:
> I've stopped using shared entirely, it has only one meaning now 
> for me and that is: use atomics.
>
> Having it infiltrate everywhere isn't helpful, in fact half the 
> time I spent is on fixing casting to and from shared.
>
> This is after trying to implement lock-free concurrent data 
> structures in D for like 6 months, so my opinion is slightly 
> tainted with shared and atomics in general.

I remember fighting with `shared` too initially, trying to force 
my ideas onto the keyword. It resulted in a lot of casts and me 
hating it.

I did came around though.


More information about the Digitalmars-d mailing list