4 ms·
Why do they need to add support for this? it already exists... https://github.com/bradfitz/iter/blob/master/iter.go https://github.com/bradfitz/iter/blob/mast
by andrewchambers 12y ago
Why do they need to add support for this?
it already exists...
https://github.com/bradfitz/iter/blob/master/iter.go https://github.com/bradfitz/iter/blob/master/iter.go
- thomasahle 12y agoI don't think that would be considered good Go code. It's no shorter than writing out the 3-part for loop, and it is probably slower.
- andrewchambers 12y agowhat extra operations do you think range on a slice would do? The generated assembly is probably the same. Stylistically it is odd however.