in reply to Re^3: Introducing MooseX::hasn't
in thread Introducing MooseX::hasn't
No, polymorphism doesn't depend on inheritance, and I never claimed that it did. Polymorphism is generally an expected outcome of inheritance though. There are clearly other ways of allowing polymorphism though - roles as you say; also mocking, delegation, etc.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Introducing MooseX::hasn't
by Arunbear (Prior) on Apr 03, 2012 at 17:58 UTC |
In Section
Cool Uses for Perl