Pure vs. Impure Iterators in Go

1 ingve 4 5/29/2025, 8:57:38 AM jub0bs.com ↗

Comments (4)

tapirl · 23h ago
Be careful there are bugs and design flaws in Go iterators: https://go101.org/blog/2025-03-15-some-facts-about-iterators...
jub0bs · 20h 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 · 15h ago
jub0bs · 1h ago
Ok, that is annoying. I hope it gets fixed soon.