stevan / p5-mop-redux

A(nother) MOP for Perl 5
139 stars 36 forks source link

do we want to factor more common bits out of the core mop classes? #96

Open doy opened 10 years ago

doy commented 10 years ago

This is slightly related to #95. There are a lot more things that metaclasses have in common than just the fire/bind stuff - class, role, attribute, and method all have name, class and role have version and authority, attribute and method have original_id and associated_meta, etc. It seems like a lot of this could be factored out into roles, to remove a lot of duplication.

stevan commented 10 years ago

Yes, this makes sense, however we need to be careful about how much work we are adding to the bootstrap, it could cause performance issues.