|
|
|
|
|
by exacube
3208 days ago
|
|
1) using channels + goroutine to implement a map doesn't seem like the most sensible thing to do; even golang's new sync.Map type is implemented with mutexs (eg https://github.com/golang/sync/blob/master/syncmap/map.go#L2...). Idiomatic doesn't mean ALWAYS do this no matter what; it is the natural thing to do if it feels like the right approach. 2) Don't use "considered harmful" so much; it is considered harmful. |
|