This is way better.
On Thu, Jun 4, 2009 at 1:31 AM, Chris Anderson <[email protected]> wrote: > Couchers, > > I've been hacking on that list iterator stuff I'd been talking about. > Here's the branch (for now) > http://github.com/jchris/couchdb/tree/list_iterators > > The difference with this branch is that you call getRow() when you > want another view row, and you can send() a chunk (string) whenever > you want, instead of being constrained to functions which had to > return after each call. This gives you more freedom to manage your own > state between calls. > > Here's an example of what the syntax comes out like > http://github.com/jchris/couchdb/blob/5345878fad321319422c4c6e56ab5e0537e79ebc/share/www/script/test/list_views.js#L42 > > Once I do a little more edge case testing I'll bring it into the > Apache repository as a branch. I think this is clearly better than the > current list (head / row / tail) API. What do you think? > > Chris > > -- > Chris Anderson > http://jchrisa.net > http://couch.io >
