4 ms·
This was actually fairly heavily discussed on the Golang mailing list a few months ago[0]. For now I believe the designers of the language would rather keep th
by kyrra 12y ago
This was actually fairly heavily discussed on the Golang mailing list a few months ago[0]. For now I believe the designers of the language would rather keep things as simple as possible. For something that can be done with a fairly simple for-loop, they would rather have you write that out. If there is certain functionality that requires a complex amount of code, the would consider adding either a package to help or changing the language if needed.
[0] https://groups.google.com/d/topic/golang-nuts/RKymTuSCHS0/discussion https://groups.google.com/d/topic/golang-nuts/RKymTuSCHS0/di...