Page 1 of 1

why better to return Itterator than array

Posted: Wed Aug 23, 2006 6:03 am
by jmut
Lets say we make a db query.
Why is it better our method/function to return result object which implments itterator than returning a whole array with the results.
Any pros and cons?

Posted: Wed Aug 23, 2006 6:10 am
by Jenk
this may be of good reading :)

viewtopic.php?t=54143