2 ms·
> The real hack to me is that anything which simply has Lock() and Unlock() methods is considered uncopyable. It's a shame they made them generic, taking no ar
by zimpenfish 2mo ago
> The real hack to me is that anything which simply has Lock() and Unlock() methods is considered uncopyable.
It's a shame they made them generic, taking no arguments and returning nothing; if they'd gone for `Lock(sync.LockType)` or something like that, it would be more difficult to accidentally trigger the `noCopy` flag.