G
Jul 15, 2026Go Iterators (range-over-func): the yield contract and the traps
Go iterators explained through the real traps: the yield contract, the 'continued iteration' panic, cleanup on break, iter.Pull and its stop(), and when NOT to write an iterator.
Jul 15, 20264 min read1 reactions0 comments