On Tuesday, 27 February 2018 08:17:20 UTC+1, [email protected] wrote:
>
> ok, this is really make gophers worry about whether or not the pointer
> atomic functions should be used.
>
No, probably this is much less worrying as you think.
Take a look as the documentation of sync/atomic:
"These functions require great care to be used correctly.
Except for special, low-level applications, synchronization
is better done with channels or the facilities of the
sync package."
The package itself says "do not use me", so just don't.
If a sticker on something reads "Hot! Do not touch!" then
sensible people just don't touch. They do not worry whether
to touch or not; they are happily not-touching.
V.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.