Re:Should I use a Swift struct or a class?
by oldmanjay on Saturday July 04, 2015 @03:59PM
(#9831416)
3) synchronize correctly, which is fraught in nearly all languages. Rust has some very nice facilities for this, however, that make shared mutable state very usable indeed.
Re:Should I use a Swift struct or a class?
by seanmcdirmid on Saturday July 04, 2015 @04:14PM
(#9831458)
If you don't have shared mutable state or shared resources, then you don't really have concurrency. Concurrency is actually defined as this problem, as opposed to parallelism which is just about splitting up work.
1) Make it not mutable 2) Make it not shared
But these are still "state", so I'm not really sure what the hell the article is on about.