Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Swift actually does this copy-on-mutation strategy as well for its standard library’s container types like Array and Dictionary, and it does indeed make multithreaded programming much easier without requiring full copies. The downside is that you pay reference-counting overhead.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: