p5-mop-redux
p5-mop-redux copied to clipboard
A(nother) MOP for Perl 5
- Test cases for overloading, including a TODO (for which I'll file a separate issue). - Allow attributes to take part in overloading without needing an accessor. This only makes...
I've changed the behavior of generated accessors for static class. I think the best way is to read or change the default value of an attribute. This is the same...
I'm not sure why required methods are not regular mop::method instances, just without a body? I wrote a simple Pod::Coverage class for mop, but I just noticed it does not...
When a required method has a signature it is not treated as required: ``` # OK class Foo is abstract { method validate; } # NOT OK class Foo is...
It would be nice to be able to do: ``` mop::meta("Foo::Baz")->set_superclass("Foo::Bar"); ``` Setting a class' superclass in normal runtime code is (naturally) insanity. But setting it within a class trait...
Might be nice to be able to define multiple attributes with `has ($!foo, $!bar);`, just like in Perl6, and analogous to `my ($foo, $bar);`.
I've wound up with a non-deterministic bug because I've set the value from an attribute in the constructor, but the default value of a different attribute relies on the first...
**NOTE** This is from an email sent to me by Pete A., it is his idea, but I really like it. – Stevan --- In Common Lisp there is custom...
sub is not used for methods, traits should have their own keyword too. This could hide away some of the boilerplate too.