Object-InsideOut - Re: Conventions - Object::InsideOut vs. Class::Std

Posted on Thu Dec 29 18:04:13 2005 by melo in response to 1326 (See the whole thread of 5)
Re: Conventions - Object::InsideOut vs. Class::Std

Hi Jerry,

I'm a newcommer to Object::InsideOut and so far I like it very much.

Regarding your three bullet points at the top of the previous message, I only have an issue with the first one.

1. Class::Std lumps together accessor designation and ->new() argument specification as part of the :Field designation in an ad hoc manner. Object::InsideOUt logically separates the two because not all ->new() arguments necessarily tie directly to a field.

I agree that the separation makes sense when you want to have parameters to the :Init method that aren't fields, but I would say that this is something not that comon. I would bet that most :Init parameters are fields, and in that case, we are splitting field information in two places.

Do you think it's useful to add Mandatory and RegExp to the :Field declaration? For me it woul make all the field meta-data in a single place.

Comments?

Thanks,

Direct Responses: 1533 | 1546 | Write a response