Subject: | Perhaps make `fun` and `method` install methods at compile time. |
This could be optional using something like:
method foo () but at(BEGIN) { ... }
... but perhaps make it the default, and make run-time installation the option?
Reasoning:
package Foo {
use Moo::Role;
requires 'foo';
}
package Bar {
use Moo;
use Kavorka;
method foo { 1 }
with 'Foo'; # works
}
package Baz {
use Moo;
use Kavorka;
with 'Foo'; # dies; method 'foo' not defined yet!
method foo { 1 }
}