AUTOLOAD (was: PHP sucks...)

Simon Cozens simon at simon-cozens.org
Sat Jan 13 18:29:39 GMT 2007


Tim Sweetman:
> Damian's "Best Practices" say: don't use AUTOLOAD.

I say: Don't use Damian's "Best Practices".

Write code that is as easy for others to read. How that works out in practice
depends on the situation. I have no problems with people using AUTOLOAD, so
long as AUTOLOAD checks its parameters; that way, what you're doing doesn't
it doesn't change the interface to your class, and only exposes the things you
document anyway.

-- 
"When in doubt, print 'em out."
-- Karl's Programming Proverb 0x7


More information about the london.pm mailing list