4 ms·
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 1
by fredsanford 13y ago
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. :)