[Dbix-class] Re: DBIx::Class::ResultSet::RecursiveUpdate - announcement and RFC

Oliver Gorwits oliver.gorwits at oucs.ox.ac.uk
Wed Oct 1 00:18:05 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zbigniew Lukasiak wrote:
> For the time being the convention with special treatment for {pk
> => undef} is the only way that I can implement something covering
> all the possible cases.

I think that "special treatment" should set off alarm bells in your
head. It's a sign that either this is a path to insanity, or just
incorrect design which will not scale.

To my mind the best thing to do would be drop the requirement to
cater for "all possible cases" - after all that's not what Perl/CPAN
is about; it's about catering for a set of cases for *some* systems,
and somebody else can deal with the other cases.

The PK => undef hint is just that, a hint, and hints are by
definition disposable, hence not required, and therefore not necessary.

- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI4rOt2NPq7pwWBt4RAstAAJ4jzqwJhmPOCGcSN2aY1SxS+QnNAQCg0mZY
JNPISfcn+IryZdIFxSERRqI=
=bk1N
-----END PGP SIGNATURE-----



More information about the DBIx-Class mailing list