Object-InsideOut - Re: Argument passing and parsing

Posted on Thu Nov 30 16:14:02 2006 by gaetan in response to 3210 (See the whole thread of 6)
Re: Argument passing and parsing
I read the Param::Validate POD documentation The "problem" with this solution is that the validation process has to be called explicitely at the beginning of the method One solution would be the use of attributes. The attributes implementation could internally use the Param::Validate Advantages of such a solution: . integrated solution (no more explicit call to validation method) . consistent method "prototype" (constructor new and other methods use the same way for the parameters) What do you think about this proposal ? Gaetan
Direct Responses: 3667 | Write a response