Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tapirl
· 1y ago · 0 comments
Be careful there are bugs and design flaws in Go iterators:
https://go101.org/blog/2025-03-15-some-facts-about-iterators...
Comments
[–]
jub0bs
1y ago
Your post does show that iterators are somewhat of a leaky abstraction, but I'm not sure I would go as far as calling some of their infelicities "bugs". Whether those infelicities matter in practice is a moot point.
[–]
tapirl
OP
1y ago
The bug is confirmed:
https://github.com/golang/go/issues/71685
[–]
jub0bs
1y ago
Ok, that is annoying. I hope it gets fixed soon.