mop problem 4 - mop is misleading name
I want to write all mop problems I am thinking before mop is added to Perl core.
mop is abbreviation of Meta Object Protocol. I think this name is misleading name. This name associate "Meta information of Object ".
But truth is that any information is Class Information, not Object information.
1. Attribute name
2. Parent class
This is belong to Class, not Object.
ref $object -> Class -> Attribute name -> Parent class -> Role information
The following concept is not good.
meta($object) -> Attribute name -> Parent class -> Role information
If all object have meta information, this is heavy cost. Information should be shared in Class, and Object should be container of only data.
Reply of Comments
I'm wrong. I'm completely had mistake of the mean of meta. I think mop is not bad name.
But I think object is cost if there are 1000 Classes and the class have 20 attribute and methods. the total of all attribute objects of all classes and all methods of all classes is 20000.
I think bless x 20000 is cost. If API is provided, internal data is good to be created as hash reference and array reference?