Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Should I use the published API or muck about in the internals? I've been thinking about this for a couple of days now, to give sanity the chance to overrule my insanity, but it hasn't. sub AUTOLOAD{}, $AUTOLOAD and tie are as much APIs as use base;, @ISA and bless. Both sets of function employ symbol table manipulation and 'magic'. You're being selective about which set you choose to ordain and which you choose to deprecate. I'm not arguing for a Java- or VB-ification of Perl. Actually, I think you are. I'm arguing for some self-discipline among Perlers. This sounds like the same argument as that put forward by those who vote to enforce helmet laws on motorcyclists, even though they have never ridden a motorcycle. The phrase that comes to mind is "The nanny state". In reply to Re^3: AUTOLOAD - the good, the bad, and the ugly
by BrowserUk
|
|