Tamás Gulácsi <tgulacs...@gmail.com>:
> You can achive sth like this with a function returning a chan.

I'm aware of this. There's a good essay on iterator patterns

https://ewencp.org/blog/golang-iterators/index.html

that goes into three of the possibilties in detail.  It covers the
problem with the channel idiom, too - slowness due to channel
scheduler overhead.  Can be pretty bad - I've verified this by
benchmarking.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to