Signatures vs. Methods
I've still been thinking about proper OO in the Perl core and hit an interesting case.
Imagine the following, hypothetical Perl 5 OO syntax. Inheritance is handled via is and inheritance order is assumed to parent class declaration order. Thus, UnlovedChild inherits from MissingFather first.
What do you think the output should be?
class MissingFather {
method shout() { say "I'm outta here!" }
}
class DrunkenMother {
method shout($message) { say "$message!" }
}
class UnlovedChild is MissingFather, DrunkenMother {}
UnlovedChild->shout("Where's my beer?!")