3 ms·
Wait groups is a feature that was added to go quite long ago, so the claim that it doesn't match the language philosophy seems more than a little bit strange. O
by yxhuvud 3y ago
Wait groups is a feature that was added to go quite long ago, so the claim that it doesn't match the language philosophy seems more than a little bit strange. Or were you just talking about making them obligatory?
I've seen claims though that it is best practice to always use wait groups but I can't judge the quality of those claims as I don't actually program go.
- Rochus 3y agoIf it wasn't part of Newsqueak, then it's very likely not part of the original language philosophy. A lot of things seem to have been added with hindsight to ease migration and support programmers coming from previous thread libraries. > I've seen claims though that it is best practice to always use wait groups Is this from the original authors? Can you provide a reference, please?
- yxhuvud 3y ago> A lot of things seem to have been added with hindsight to ease migration Or perhaps a lot of things were added because it makes the language easier to write and read and less prone to failures, when solving real problems. Pragmatism wins, every time. Frankly, Go doesn't seem like a language that would add stuff to ease migration or to simplify for people coming from other backgrounds. > Is this from the original authors? No, random forum posts by seemingly experienced developers.