objective c - Why atomic and nonatomic concept has removed from swift -


there no nonatomic keyword in swift, why nonatomic not required in swift exist in objective c.

in swift nonatomic default (and only) choice, not required, unlike objective-c atomic default not desired behaviour.

as why swift not offer atomic, well, guess has not been seen necessary feature language designers. of course can implement atomic properties synchronisation, mutexes, semaphores, etc. these solutions more verbose, allow making thread-safe class, unlike making properties atomic in objective-c.


Comments

Popular posts from this blog

c++ - CPP, 'X' button listener -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -

shared memory - gstreamer shmsrc and shmsink with h264 data -