On Monday, 5 March 2018 at 19:39:35 UTC, Robert M. Münch wrote:
On 2018-03-05 18:57:01 +0000, Steven Schveighoffer said:
If you want to have methods, shared kind of sucks. But this at least tells the type system that it's shared between threads.

Why does it suck?

Because your code will become very verbose and you'll end up casting shared away to do stuff.

Basically you won't be able to do anything that isn't in a synchronized context and such your code will either have synchronized everywhere or you'll cast away shared.

Personally I never use shared, because it's just such a bother.

Reply via email to