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

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -