[Dbix-class] Improved resultset iterators

2010-08-04 Thread Toby Corkindale
Hi, I posted this to the list in May, just looking for confirmation that the API I had in mind was correct, before implementing it. (Since my first, implemented suggestion had been shot down, and I'd rather nail the spec down before coding it again.) No response at the time, but I thought I'd

Re: [Dbix-class] Improved resultset iterators

2010-05-07 Thread Toby Corkindale
On 07/05/10 06:31, Matt S Trout wrote: On Tue, May 04, 2010 at 01:08:52PM +1000, Toby Corkindale wrote: On 22/04/10 19:00, Peter Rabbitson wrote: Toby Corkindale wrote: Hey all, Wouldn't it be nice if the ResultSet iterators were a bit more advanced? I would love it if the iterator built

Re: [Dbix-class] Improved resultset iterators

2010-05-06 Thread Matt S Trout
On Tue, May 04, 2010 at 01:08:52PM +1000, Toby Corkindale wrote: On 22/04/10 19:00, Peter Rabbitson wrote: Toby Corkindale wrote: Hey all, Wouldn't it be nice if the ResultSet iterators were a bit more advanced? I would love it if the iterator built into DBIx::Class supported some more

Re: [Dbix-class] Improved resultset iterators

2010-05-03 Thread Toby Corkindale
On 22/04/10 19:00, Peter Rabbitson wrote: Toby Corkindale wrote: Hey all, Wouldn't it be nice if the ResultSet iterators were a bit more advanced? I would love it if the iterator built into DBIx::Class supported some more functional programming style methods. ie. So that I could do:

[Dbix-class] Improved resultset iterators

2010-04-22 Thread Toby Corkindale
Hey all, Wouldn't it be nice if the ResultSet iterators were a bit more advanced? I would love it if the iterator built into DBIx::Class supported some more functional programming style methods. ie. So that I could do: $schema-resultset('Users')-search( { first_name = 'Bob' } )-foreach(

Re: [Dbix-class] Improved resultset iterators

2010-04-22 Thread Peter Rabbitson
Toby Corkindale wrote: Hey all, Wouldn't it be nice if the ResultSet iterators were a bit more advanced? I would love it if the iterator built into DBIx::Class supported some more functional programming style methods. ie. So that I could do: $schema-resultset('Users')-search( {

Re: [Dbix-class] Improved resultset iterators

2010-04-22 Thread Jim Spath
On 4/22/2010 5:00 AM, Peter Rabbitson wrote: The implicit iterators built into DBIC resultsets were a blatant design mistake Can you expand on this statement? I'm curious to hear more. ___ List: