Keep It Simple, Stupid | |
PerlMonks |
Re^6: (How) Do you document/test your private subroutines? (->can)by LanX (Saint) |
on Nov 12, 2018 at 17:41 UTC ( [id://1225651]=note: print w/replies, xml ) | Need Help?? |
> you might accidentally define _frobnicate in the child class ... and kaboom! for completeness, we might not get a "Subroutine _frobnicate redefined at" warning but it is possible to dynamically inspect a parent class with ->can from UNIVERSAL So it's not that the "sub-class"-developer is completely in the dark. It should even be possible to check this automatically. (which is the saner approach since people don't tend to read the docs after a parent class got extended)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|