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 -

Get Max value from table in hibernate -

r - geom_bar tied exactly to x and y axis (without aggregating) -