At 06:14 PM 11/5/2004 +0100, Andrey Hristov wrote:
The thing I find nice in the current way of implementing it with getInstance()
and a static class variable is that it is like it is defined in GoF. People
can easily understand what's going on. Otherwise it is too much of magic to me:)

Agree and PHP 5 gives enough tools to do this on your own.
Personally I find such overloading a disadvantage rather than an advantage as it leads to less readable and more cryptic code. Verbosity is your friend...


Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to