Dave Howorth wrote:
> Will Hawes wrote:
>> I'd vote for removing wantarray() completely. IMO, if a user wants 
>> objects rather than a ResultSet, they should call ->all.
> 
> How about providing *_all methods to avoid doubling the number of method 
> invocations and avoid constructing/destroying unwanted iterators?

It's not an iterator, it's a full ResultSet. This is fundamental to the DBIC 
design - and also means in many cases you can't get where you need to without 
creating a new one since it encapsulates the query etc.

Mostly, I'd really like to just get rid of the array-in-list-context behaviour 
but don't want to spanner anybody relying on it in production. Anybody got any 
bright ideas?

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/

Reply via email to