Re:Iterator patterns in Go
by fredsanford on Sunday September 08, 2013 @08:54AM
(#6348558)
Does Go have generator functions? Yield?
I'm curious because that's what makes python the best language for me in a lot of cases.
Iterators that don't load 100,000,000 rows at a time for a result set are... useful. And that's what you get with the simple (iterator/generator func)/db cursor pattern in python.
Something similar in Go would go a long way in helping me get over the fixed braces position go enforces. :)
I'm curious because that's what makes python the best language for me in a lot of cases.
Iterators that don't load 100,000,000 rows at a time for a result set are... useful. And that's what you get with the simple (iterator/generator func)/db cursor pattern in python.
Something similar in Go would go a long way in helping me get over the fixed braces position go enforces. :)