On Feb 14, 2008 8:04 PM, John Siracusa <[EMAIL PROTECTED]> wrote:

> Perl 5 doesn't have any language features for validating named
> parameters, and doing so "manually" at runtime is (relatively)
> expensive.  This is especially true for Manager methods which take a
> ton of parameters (and still growing).

Params::Validate is pretty fast, in my experience.  Could I win you over
with a patch and some benchmarks showing no significant performance
degradation?   (Speaking of, where would I get bench.pl from

> Finally, if you're really concerned, keep in mind that you can always
> make your own Manager subclass that does check args, then have all
> your real Manager classes inherit from it instead of inheriting form
> Rose::DB::Object::Manager directly.

Sure, I could do that.  Is it safe to assume that this problem exists for
more than just ::Managaer?

This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Rose-db-object mailing list

Reply via email to