stevan / p5-MOP

A Meta Object Protocol for Perl 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handling different instance types

stevan opened this issue · comments

All the previous prototypes had a more specifically designed in instance type/protocol, we have avoided that so far in this one. This requires some discussion, but we are currently leaning towards not providing anything beyond the base HASH ref instance version, while making sure it is possible to do other reference types if needed.

The idea is that 99% of Perl objects are just HASH refs and people are just fine with that, so while we do need to make it possible to support other ref types, the use of them is an anomaly and so should not slow down or complicate the HASH ref code path.

Relevant Commits

  • 0eec933 => primitive FETCH/STORE/CREATE idea

This is no longer the domain of the MOP, this is (if anything) part of UNIVERSAL::Object. Either way the ticket should be closed.