Re:Iterator patterns in Go
by ewencp on Sunday September 08, 2013 @12:14AM
(#6347802)
I'll buy that -- it's sort of mentioned in the post as an object-based wrapper around the closure version, except I listed the functions as HasNext() and Next(). More boilerplate for the iterator implementer, but I agree, it reads better for the caller.
[ Parent
| on HN ]
There are no comments on this comment yet.