A Meta Object Protocol for Perl 5
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
stevan opened this issue 8 years ago · comments
(From #14 by @wolfsage)
You can specify a non-sub for @Has attributes:
@HAS = ( x => {} ),
This will crash at runtime with a not-a-code-reference. Would it be possible/better to do this check at compile time (unitcheck?) when finalizing the class to make sure attributes are properly formed?