Syntactic Confectionery Delight | |
PerlMonks |
Class::Base uses keyword parms for constructor but then methods use positional [oop, swengr]by princepawn (Parson) |
on Nov 06, 2007 at 18:25 UTC ( [id://649308]=perlmeditation: print w/replies, xml ) | Need Help?? |
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.
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.
Back to
Meditations
|
|