[Catalyst-dev] Re: Bug in Catalyst::Model::DBI .15

A. Pagaltzis pagaltzis at gmx.de
Sun May 6 14:01:56 GMT 2007


* Jonathan Rockway <jon at jrock.us> [2007-05-06 14:05]:
> There's also Scalar::Defer:

That module is good when the inflation may happen in code that
you don’t control or one of *many* places in an existing
codebase. Then having some magic which lets you imbue an scalar
with laziness is useful.

But none of that is the case here. There is only one place in
which inflation can happen and it’s in a place that the M::DBI
has control over. It’s *easy* to make this code connect lazily
without the aid of any modules.

So please don’t drag in gratuitous magic.

As a bonus, your list of dependencies will be slimmer too.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst-dev mailing list