3 ms·
I don't understand why someone would write a blog post about a collection type not being thread safe? Why not just look at the documentation and simply confirm
by alkonaut 11y ago
I don't understand why someone would write a blog post about a collection type not being thread safe? Why not just look at the documentation and simply confirm that it isn't thread safe?
Edit: Ok one reason could be that the documentation sucks and there are no mentions of the concurrency guarantees of the standard library types...
- lazyjones 11y agoPossibly because the Go "authorities" are now trying to attract the kind of programmers who need "trigger warnings" and "safe spaces", for some reason. Just look at the new community CoC. I apologize if this constitutes a micro- or nano-aggression. More seriously, it's probably just a frequent mistake and they try to educate people proactively to help code quality in the long run. Edit: the non-atomic map updates are mentioned in the FAQ, but you're right, the documentation could be improved in that regard (possibly triggering many criticisms of the language from people who've never used it, just browsed the docs for reasons not to use it).
- lambda_cube 11y agoCoC? Code of Conduct? Churches of Christ? Call of Cthulhu?