Re: new overloading feature?
| From: | Andi Gutmans | Date: | Sat, 06 Nov 2004 08:03:33 +0000 |
| Subject: | Re: new overloading feature? | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13753@lists.php.net to get a copy of this message | ||
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