4 ms·
Oh, they use abstractions a lot, just not the flow control ones, mainly objects. Like sync.WaitGroup mentioned here is an object and is a completely brain dead
by zzzcpan 12y ago
Oh, they use abstractions a lot, just not the flow control ones, mainly objects. Like sync.WaitGroup mentioned here is an object and is a completely brain dead choice for this kind of thing. Some form of parallel map() instead would be much easier to understand and to reason about, for example: http://play.golang.org/p/4I-uBJ1Tce http://play.golang.org/p/4I-uBJ1Tce
Anyways, I mostly agree, just not generally over abstractions, but more in the context of proper flow control abstractions.