I like the rigor that Class::Base places on the constructor. And I am a big fan of keyword parms. But CB does not seem to be a complete solution for oop-dev because you dont get the same parameter validation for methods.
Ivan Raikov says: the first step to understanding recursion is to begin by understanding recursion.
I endorse and use Params::Validate for this purpose. What do you use to get validated keywords parms for constructor and methods for your oop-dev?
Ivan Raikov says: the first step to understanding recursion is to begin by understanding recursion.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Class::Base uses keyword parms for constructor but then methods use positional [oop, swengr]
by Mutant (Priest) on Nov 07, 2007 at 11:46 UTC | |
by stvn (Monsignor) on Nov 07, 2007 at 15:45 UTC | |
by metaperl (Curate) on Nov 07, 2007 at 16:35 UTC | |
by stvn (Monsignor) on Nov 07, 2007 at 20:44 UTC |
Back to
Meditations