[Dbix-class] Feature request for DBIx::Class::InflateColumn::inflate_column

Ash Berlin ash at cpan.org
Sat Oct 28 15:02:41 BST 2006


Bernhard Graf wrote:
> On Saturday 28 October 2006 00:19, Matt S Trout wrote:
> 
>>> __PACKAGE__->inflate_column(qw/col1 col2 col3/ => {
>>>     inflate => sub { Some:Class->inflate },
>>>     deflate => sub { shift->deflate },
>>> });
>> What does this buy us over
>>
>> __PACKAGE__->inflate_column($_ => {
>>       inflate => sub { Some:Class->inflate },
>>       deflate => sub { shift->deflate },
>>   }) for qw/col1 col2 col3/;
>>
>> ?
> 
> Buys us readability and saves us a little typing and few CPU-Cycles ;-)
> I would think. At least it doesn't hurt. ;-)

Readablity: Maybe
Saving a few cycles: not really - how do you think DBIC will do it itself?

(I'm not saying that its should be there mind, just pointing the above)



More information about the DBIx-Class mailing list