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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -