Working functionally with third party libraries

ZombineDev via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 17 14:39:37 PDT 2015


On Friday, 17 July 2015 at 17:56:51 UTC, sigod wrote:
> On Friday, 17 July 2015 at 15:41:22 UTC, ZombineDev wrote:
>> eager approach, since it's more straightforward.
>
> What makes you think it's always more straightforward? 
> Sometimes (like in this case with MongoDB) you cannot write 
> eager approach without first writing lazy one.

Well I just wrote without properly looking up what MongoDB does. 
I thought collection.find() returned the first n elements, not a 
iterator (cursor in MongoDB's terms) and that it would be 
additional work split those n elements.
Anyway, thanks for the correction, now I am bit more educated ;)


More information about the Digitalmars-d-learn mailing list